[AJUDA]Comando
#7

Meols DEOS,
nгo acredito que o cara vai colocar uma plugin sу para um comando!


Tente amigo:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/tirarhosp", true, 9))
    {
       // if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(!cmdtext[11])
                return SendClientMessage(playerid, -1,"/tirarHosp <id>");

            static Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(strval(cmdtext[11]), pos[0], pos[1], pos[2]);
            SendClientMessage(strval(cmdtext[11]), -1, "Vocк foi retirado do hospital!");
            SendClientMessage(playerid, -1, "Vocк retirou alguйm do hospital com sucesso!");
            return 1;
        }
    }
    return 0;
}
Ou

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/tirarhosp", true, 9))
    {
       // if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(!cmdtext[11])
                return SendClientMessage(playerid, -1,"/tirarHosp <id>");

            CallLocalFunction("sairhosp", "i", strval(cmdtext[11]));
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
[AJUDA]Comando /tirarhosp - by WalkerXD - 17.12.2011, 16:24
Re: [AJUDA]Comando - by .Skool_. - 17.12.2011, 16:49
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 16:55
Re: [AJUDA]Comando - by Cristhian - 17.12.2011, 17:08
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 17:19
Re: [AJUDA]Comando - by Cristhian - 17.12.2011, 17:25
Re: [AJUDA]Comando - by [O.z]Caroline - 17.12.2011, 17:34
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 18:02
Re: [AJUDA]Comando - by WalkerXD - 18.12.2011, 17:32
Re: [AJUDA]Comando - by Cristhian - 18.12.2011, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)