[Ajuda] [Simples] GodCar
#9

Quote:
Originally Posted by 22
Посмотреть сообщение
Nada haver atualiza includes, basta por uma forward.
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

Quote:
Originally Posted by TorresPutado
Посмотреть сообщение
Nгo sou muito bom em pawno mais modificar oque para MAX_PLAYERS, e testei o /gc, quando eu batia o carro nao reparava... Help!@!, ObS: Quero que quando o carro bata ele se repara!@!
pawn Код:
new GodCar[MAX_PLAYERS];
    if (strcmp("/gc", cmdtext, true, 10) == 0)
    {
        GodCar[playerid] = 1;
        SendClientMessage(playerid,0xAAAAAAAA, "[INFO] Voce usou [ /gc ]");
        SendClientMessage(playerid,0xAAAAAAAA, "[INFO] Seu veiculo agora esta indestrutivel!@!");
        return 1;
    }

public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
 
 
  if(GodCar[playerid] == 1)
  {
    RepairVehicle(vehicleid);
  }
 
 
  return 1;
}
Reply


Messages In This Thread
[Simples] GodCar - by TorresPutado - 09.01.2014, 14:50
Re: [Simples] GodCar - by CharlieBrown - 09.01.2014, 15:03
Re: [Simples] GodCar - by Ley - 09.01.2014, 15:03
Respuesta: Re: [Simples] GodCar - by TorresPutado - 09.01.2014, 15:11
Re: [Simples] GodCar - by @Riichard - 09.01.2014, 15:20
Re: Respuesta: Re: [Simples] GodCar - by CharlieBrown - 09.01.2014, 15:24
Re: [Simples] GodCar - by 22 - 09.01.2014, 15:27
Respuesta: Re: [Simples] GodCar - by TorresPutado - 09.01.2014, 15:27
Re: [Simples] GodCar - by CharlieBrown - 09.01.2014, 15:28
Re: [Simples] GodCar - by i7Core - 09.01.2014, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)