[Ajuda] Comando roubo de carga
#4

PHP код:
if(strcmp(cmd"/roubarcarga"true) == 0)
    {
        new 
vehicleid GetVehicleModel(GetPlayerVehicleID(playerid));
            if(
missell[playerid] == 1)
            {
                
SendClientMessage(playeridCOLOR_GREY"Vocк jб roubou carga espere 1 hora para roubar novamente!");
                return 
1;
            }
            if(
vehicleid != 482) return SendClientMessage(playerid, -1"Vocк Nгo Tem o Carro Correto!");
            if(
PlayerToPoint(10.0playerid,-1115.1510,-1637.5106,76.3672))
            {
                if(
PlayerInfo[playerid][pLider] == 19 || PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 20 || PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 24 || PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 25 || PlayerInfo[playerid][pMembro] == 25)
                {
                    
SetTimerEx("RoubarCarga",360000,false,"i",playerid);
                    
SendClientMessage(playerid,-1,"Vocк estб roubando a carga , aguarde 5 mins");
                    
missell[playerid] = 1;
                    
SetTimerEx("misel",3600000,0,"d",playerid);
                }
            }
        return 
1;
    } 
Teste agora..




GetPlayerVehicleID > pega o id do veiculo , nгo o modelo.

GetVehicleModel > pega o modelo do veiculo
Reply


Messages In This Thread
Comando roubo de carga - by maikons08 - 05.09.2013, 21:03
Re: Comando roubo de carga - by darkxdll - 05.09.2013, 21:09
Re: Comando roubo de carga - by maikons08 - 05.09.2013, 21:41
Re: Comando roubo de carga - by darkxdll - 05.09.2013, 22:33
Re: Comando roubo de carga - by Standby - 05.09.2013, 22:40
Re: Comando roubo de carga - by maikons08 - 06.09.2013, 01:03
Re: Comando roubo de carga - by maikons08 - 06.09.2013, 15:13
Re: Comando roubo de carga - by darkxdll - 06.09.2013, 15:37
Re: Comando roubo de carga - by maikons08 - 11.09.2013, 02:07
Re: Comando roubo de carga - by maikons08 - 12.09.2013, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)