[Ajuda] Cmd
#1

Bom eu Tentei Fazer o cmd trazercarro Criar o interior para o carro no caso eu o puxa-se Para o mesmo mas Nгo Tive sucesso se Puder me ajudar agradeзo.
Ex:Eu Estou no Interior 7 e quero puxar tau carro mas ao puxar ele fica invisivel queria que quando eu puxasse ele fica-se visivel
Comando Abaixo V
Код:
if(strcmp(cmd, "/trazercarro", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /trazercarro [carro id]");
				return 1;
			}
			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)
				{
					SendClientMessage(playerid, COLOR_GRAD1, "Voce Nao estб trabalhando! (/trabalhar)");
					return 1;
				}
				GetPlayerPos(playerid, plocx, plocy, plocz);
				SetVehiclePos(plo,plocx,plocy+4, plocz); LinkVehicleToInterior(plo, 0);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Voce Nao estб autorizado a usar este comando!");
			}
		}
		return 1;
	}
Reply
#2

pawn Код:
if(strcmp(cmd, "/trazercarro", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /trazercarro [carro id]");
                return 1;
            }
            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)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Voce Nao estб trabalhando! (/trabalhar)");
                    return 1;
                }
                GetPlayerPos(playerid, plocx, plocy, plocz);
                SetVehiclePos(plo,plocx,plocy+4, plocz); LinkVehicleToInterior(plo, 0);
                                LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,GetPlayerInterior(playerid));
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce Nao estб autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply
#3

Nгo funcionou
Reply
#4

Qual GM usa?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)