[Ajuda] Cmd
#5

tenta assim

pawn Код:
if(strcmp(cmd, "/trazercarro", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            return SendClientMessage(playerid, COLOR_GRAD2, "USE: /trazercarro [carro id]");;
        }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                {
                    return SendClientMessage(playerid, COLOR_GRAD1, "Voce Nao estб trabalhando! (/trabalhar)");;
                }
                GetPlayerPos(playerid, plocx, plocy, plocz);
                SetVehiclePos(plo,plocx,plocy+4, plocz+4); LinkVehicleToInterior(plo, GetPlayerInterior(playerid));
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce Nao estб autorizado a usar este comando!");
            }
    }
    return 1;
}
Reply


Messages In This Thread
Cmd - by WendeLKILL - 26.02.2014, 22:00
Re: Cmd - by lHesoyaml - 27.02.2014, 00:23
Re: Cmd - by WendeLKILL - 27.02.2014, 17:42
Re: Cmd - by lHesoyaml - 18.05.2014, 18:26
Re: Cmd - by iTzDemon - 18.05.2014, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)