[Ajuda] [Simples] GodCar
#10

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!@!
Teste e me avise.

@CharlieBrown

Para de Editar e copiar o de Baixo


pawn Код:
#include <a_samp>

#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xAA3333AA

new GodCar[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
    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;
    }
    return 0;
}

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)