[HELP] Need help with /sl
#6

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;
}
Reply


Messages In This Thread
[HELP] Need help with /sl - by Stefand - 29.05.2012, 17:01
Re: [HELP] Need help with /sl - by FalconX - 29.05.2012, 17:07
Re: [HELP] Need help with /sl - by Stefand - 29.05.2012, 18:12
Re: [HELP] Need help with /sl - by Stefand - 31.05.2012, 14:45
Re: [HELP] Need help with /sl - by mati233 - 31.05.2012, 15:04
Re: [HELP] Need help with /sl - by ViniBorn - 31.05.2012, 15:14

Forum Jump:


Users browsing this thread: 2 Guest(s)