Spawning a Modified Vehicle
#1

Alrighty. let's get down and dirty.

Here's the code.

pawn Код:
//Modified Jester (Admin Vehicle)
public OnVehicleSpawn(vehicleid)
{
  if (vehicleid == vehicle)
  {  //============================[Jester]================================//
    AddVehicleComponent(vehicle, 1010); // Nitro
    AddVehicleComponent(vehicle, 1065); // Exhaust Alien
    AddVehicleComponent(vehicle, 1067); // Roof Alien
    AddVehicleComponent(vehicle, 1069); // SideskirtRight Alien Sideskirt
    AddVehicleComponent(vehicle, 1071); // SideskirtLeft Alien Sideskirt
    AddVehicleComponent(vehicle, 1073); // Shadow Rims
    AddVehicleComponent(vehicle, 1158); // Spoiler X-Flow
    AddVehicleComponent(vehicle, 1159); // Rearbumper Alien
    AddVehicleComponent(vehicle, 1160); // Frontbumper Alien
    AddVehicleComponent(vehicle, 1013); // Head lights
  }
  return 1;
}

//Spawn Command (EPIC FAIL)
if(strcmp(cmdtext, "/gjester", true) == 0)
{
     if(IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_WHITE, "Vehicle Spawned!");
     else SendClientMessage(playerid, COLOR_RED, "You must be logged into RCON to use this command.");
     // (Bad, IGNORE) // == vehicle = AddStaticVehicle(559,-2482.4937,2242.3936,4.6225,179.3656,6,1); // ==

         return 1;
    }
return 0;
}
What i am trying to do is have a modified jester spawned right infront of you. providing that you are logged into RCON. I know how to do it at a certain location by using addstaticvehicle but i want to make it so that it spawns infront of me, when i type /gjester. anyways i hope someone can help me with this.

Best of luck,
Keujh
Reply


Messages In This Thread
Spawning a Modified Vehicle - by keujh - 03.04.2010, 04:59
Re: Spawning a Modified Vehicle - by boelie - 15.05.2010, 13:18
Re: Spawning a Modified Vehicle - by Thrarod - 15.05.2010, 14:01
Re: Spawning a Modified Vehicle - by Zh3r0 - 15.05.2010, 14:06
Re: Spawning a Modified Vehicle - by Thrarod - 15.05.2010, 14:09
Re: Spawning a Modified Vehicle - by Zh3r0 - 15.05.2010, 14:11
Re: Spawning a Modified Vehicle - by Killa_ - 15.05.2010, 14:13
Re: Spawning a Modified Vehicle - by Thrarod - 15.05.2010, 14:14
Re: Spawning a Modified Vehicle - by Zh3r0 - 15.05.2010, 14:19
Re: Spawning a Modified Vehicle - by Thrarod - 15.05.2010, 15:07

Forum Jump:


Users browsing this thread: 2 Guest(s)