31.05.2012, 15:14
pawn Код:
CMD:sl( playerid, params[ ] )
{
new id;
if( sscanf( params, "r", 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" );
new VBString[ 64 ];
if( Player[ playerid ][ DriverLic ] == 1 )
format( VBString, sizeof( VBString), "Driver Name: %s STATUS: Valid", GetName( playerid ) );
else
format( VBString, sizeof( VBString), "Driver Name: %s STATUS: Invalid", GetName( playerid ) );
SendClientMessage( id, ORANGE, "------------[LICENSES]------------" );
SendClientMessage( id, WHITE, VBString);
SendClientMessage( id, ORANGE, "------------[LICENSES]------------" );
return 1;
}