[Ajuda] Ajuda descarregando toda hora
#3

Quote:
Originally Posted by TenhoUmaDuvida
Посмотреть сообщение
Faзa uma variavel para verificar se o player usou /carregar ou nгo.
Apenas exemplificando o que nosso amigo acima disse, faзa isso:



Adicione no topo do seu GM ou onde vocк organiza suas variбveis
PHP код:
new Carregou[MAX_PLAYERS]; 
Altere isso no seu comando
PHP код:
if (strcmp("/descarregar"cmdtexttrue8) == 0)
{
    if(!
Carregou[playerid]) return SendClientMessage(playeridcor"Vocк nгo tem nenhuma carga."); // somente essa linha foi adicionada.
    
if(Profissao[playerid] == Petroleiro)
    if(
PetroleiroChecks[playerid] == 2)
    if(
IsPlayerInRangeOfPoint(playerid10.01825.6751, -1634.575312.9540))
    {
        
DisablePlayerCheckpoint(playerid);
        
SendClientMessage(playerid,AMARELO,"Voce descarregou a carga com sucesso e ganhou $70!");
        
GivePlayerMoney(playerid70);
        
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
    }
    return 
1;

Dentro do seu comando de carregar, vai ter que colocar isso tambйm
PHP код:
Carregou[playerid] = 1
Reply


Messages In This Thread
Ajuda descarregando toda hora - by Bigdk - 20.04.2015, 21:18
Re: Ajuda descarregando toda hora - by #Luca[S]. - 20.04.2015, 21:20
Re: Ajuda descarregando toda hora - by Hardware - 20.04.2015, 21:29
Re: Ajuda descarregando toda hora - by Bigdk - 20.04.2015, 21:32
Re: Ajuda descarregando toda hora - by Hardware - 20.04.2015, 21:42
Re: Ajuda descarregando toda hora - by ipsLuan - 20.04.2015, 22:38
Re: Ajuda descarregando toda hora - by Hardware - 20.04.2015, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)