[HELP] Need help with /sl
#2

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;
}
Hope this helps
_FalconX
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: 1 Guest(s)