[AJUDA] Admins.
#1

Ola eu estava precisando colocar um comando somente para administradores.

Mas eu tentei e nгo consegui.

Obs:
pawn Код:
if(strcmp(cmdtext, "/criararvore", true) == 0)
    {

        new Float:plocx,Float:plocy,Float:plocz;
        GetPlayerPos(playerid, plocx, plocy, plocz);
        SetXmasTree(plocx,plocy,plocz);
        SetPlayerPos(playerid, plocx-2.5, plocy+2.5, plocz);//so you dont get stuck in the presents

        return 1;
    }
Esse comando, tentei usar a seguinte funзгo.

pawn Код:
if(IsPlayerAdmin(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
Alguem ajuda? :/
Reply


Messages In This Thread
[AJUDA] Admins. - by Baigou - 24.11.2011, 00:59
Re: [AJUDA] Admins. - by Pharrel - 24.11.2011, 01:02
Re: [AJUDA] Admins. - by Baigou - 24.11.2011, 01:17
Re: [AJUDA] Admins. - by Sergiinhonike - 24.11.2011, 01:18
Re: [AJUDA] Admins. - by Pharrel - 24.11.2011, 01:21
Re: [AJUDA] Admins. - by Cristhian - 24.11.2011, 01:23
Re: [AJUDA] Admins. - by Baigou - 24.11.2011, 20:23
Re: [AJUDA] Admins. - by humildadeforever - 24.11.2011, 20:40
Re: [AJUDA] Admins. - by Jimmy_Vilhena - 24.11.2011, 21:08
Respuesta: [AJUDA] Admins. - by hugo103 - 27.12.2011, 16:29

Forum Jump:


Users browsing this thread: 5 Guest(s)