[AJUDA] /daradmin (ZCMD -SSCANF)
#2

seu cуdigo estб perfeitamente correto!,
o sscanf jб trasforma.

pawn Код:
COMMAND:daradmin(playerid, params[])
{
    if(PlayerInfo[playerid][Admin] < 1)
        return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo para ъtilizar esse comando.");
       
    if(ModoAdmin[playerid] == 0)
        return SendClientMessage(playerid, -1, "Vocк nгo estб trabalhando (/modoadmin).");
   
    if(!sscanf(params, "ud", id, numero))
        return SendClientMessage(playerid, -1, "USE: /daradmin [id] [level].");
       
    if(numero > 0 || numero < 6) return SendClientMessage(playerid, -1, "Use nъmeros entre (0-5).");
   
    PlayerInfo[id][Admin] = numero;
    return 1;
}
Reply


Messages In This Thread
[AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:26
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [O.z]Caroline - 12.10.2011, 00:28
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:31
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:31
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [O.z]Caroline - 12.10.2011, 00:32
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:35
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by IILeonII - 12.10.2011, 00:35
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:36
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by IILeonII - 12.10.2011, 00:41
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:43

Forum Jump:


Users browsing this thread: 2 Guest(s)