- 0
clans ....
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
ExTREME.
re am un sistem de clan dupa ce imif ac un clan numi mere ceva
trbea sa zica already in a clan /lclan ,,,,, si imi scrie mesajul si imi da sa imi fac unu dece oare uitati ce am la comanda si connect
[pawn]public OnPlayerConnect( playerid )
{
new DBResult:R, Query[ 512 ], str[ 512 ];
format( Query, sizeof( Query ), "SELECT * FROM `PlayersClans` WHERE `Name` = '%s'", Name( playerid ) );
R = db_query( Database1, Query );
if ( db_num_rows( R ) )
{
db_get_field_assoc( R, "Keys", str, sizeof( str ));
C_DATA[ playerid ][ Keys ] = strval(str);
}
else
{
SendClientMessage( playerid, 0xFF0000FF, "You no have a clans!" );
}
db_free_result( R );
return 1;
}[/pawn]
cmd
[pawn]CMD:createclan( playerid, params[ ] )
{
if( C_DATA[playerid][Keys] > 1 )
{
SendClientMessage( playerid, 0xFF000FF, "You are already in a clan! /lclan for leave your clan.");
}
ShowPlayerDialog( playerid, DIALOGID_CLANCREATE, DIALOG_STYLE_INPUT, "Clan Name", "Please Enter The Clan Name", "Next", "Exit" );
return 1;
}[/pawn]
nush ce sa fac am incerkat si if( C_DATA[playerid][Keys] == 1 ) if( C_DATA[playerid][Keys] in tot ce se poate 1 ) nu merge:(
Link to comment
Share on other sites
2 answers to this question
Recommended Posts