29.05.2012, 17:07
pawn Код:
CMD:sl( playerid, params[ ] )
{
new id, string[ 128 ];
if( sscanf( params, "u", id ) ) return SendClientMessage( playerid, -1, "/sl [playerid]" );
if( IsPlayerConnected( id ) ) return SendClientMessage( playerid, -1, "ERROR: PLAYER NOT CONNECTED" );
if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "INvalid player id" );
if( Player[ id ][ DriverLic ] == 1 )
{
SendClientMessage( playerid, ORANGE, "------------[LICENSES]------------" );
format( string, sizeof( string ), "Driver Name: %s STATUS: Valid", GetName( id ) );
SendClientMessage( playerid, WHITE, string );
SendClientMessage( playerid, ORANGE, "------------[LICENSES]------------" );
}
else
{
SendClientMessage( playerid, ORANGE, "------------[LICENSES]------------" );
format( string, sizeof( string ), "Driver Name: %s STATUS: Invalid", GetName( id ) );
SendClientMessage( playerid, WHITE, string );
SendClientMessage( playerid, ORANGE, "------------[LICENSES]------------" )
}
return 1;
}
_FalconX