[Ajuda] /Veh
#9

includes necesarias:zcmd e sscanf||vc digita /v idcarro cor1 cor2 e quando cria outro o primeiro й destruido
va na wik e passe para dialog se preferir
pawn Код:
CMD:v(playerid, params[])
    {
      new Veiculo, Cor01, Cor02, CarroCriado[MAX_PLAYERS];
      if(sscanf(params, "ddd", Veiculo, Cor01, Cor02)) return SendClientMessage(playerid, -1, "USO: /v [ID] [Cor1] [Cor2]");
      if(Veiculo < 400 || Veiculo > 611) return SendClientMessage(playerid, -1, "ERRO: ID's de 400 a 611");  
      if(Veiculo == 432|| Veiculo == 520|| Veiculo == 447) return SendClientMessage(playerid, -1, "|ERRO| Id proibido tente outro");
      if(Cor01 < 1 || Cor01 > 255) return SendClientMessage(playerid, -1, "ERRO: Cores de 1 a 255");
      new Float:X, Float:Y, Float:Z;
      GetPlayerPos(playerid, X, Y, Z);
      DestroyVehicle(CarroCriado[playerid]);
      CarroCriado[playerid] = CreateVehicle(Veiculo, X, Y, Z, 0.0, Cor01, Cor02, -1);
      PutPlayerInVehicle(playerid, CarroCriado[playerid], 0);
      return 1;
     }
Reply


Messages In This Thread
/Veh - by Gabriel Santana - 15.08.2012, 19:07
Re: /Veh - by Gabriel Santana - 15.08.2012, 19:31
Re: /Veh - by denis15711 - 15.08.2012, 19:31
Respuesta: /Veh - by Digao - 15.08.2012, 19:32
Re: /Veh - by denis15711 - 15.08.2012, 19:33
Re: /Veh - by RafaScripter - 15.08.2012, 19:38
Re: /Veh - by Psat - 15.08.2012, 20:04
Re: /Veh - by .ThePro - 15.08.2012, 23:22
Re: /Veh - by Bruno Alves - 16.08.2012, 00:00
Re: /Veh - by Maklister - 16.08.2012, 01:57

Forum Jump:


Users browsing this thread: 2 Guest(s)