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

pawn Код:
CMD:daradmin(playerid,params[])
{
    new PlayerB,LVL; // defines de PlayerB, e LVL
    if(PlayerInfo[playerid][pAdmin] >= 1)//Variavel de admin)
    {
        if(sscanf(params,"ui",PlayerB,LVL)) // Aqui ele transforma LVL em intiger, PlayerB, em user..
        {
            SendClientMessage(playerid,-1,"USE: /daradmin [id][lvl]");
            return 1;
        }
        PlayerInfo[PlayerB][pAdmin] = LVL; // aqui й o resto do CMD
        return 1;
    }
    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: 1 Guest(s)