//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;
}
Originally Posted by Thrarod
if(strcmp(cmdtext, "/gjester", true) == 0)
{ new Float, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if(IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_WHITE, "Vehicle Spawned!"); else SendClientMessage(playerid, COLOR_RED, "You must be logged into RCON to use this command."); vehicle = CreateVehicle(559,x,y,z,179.3656,6,1,6000000); PutPlayerInVehicle(playerid, vehicle, 0); return 1; } |
if(strcmp(cmdtext, "/gjester", true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_WHITE, "Vehicle Spawned!");
else SendClientMessage(playerid, COLOR_RED, "You must be logged into RCON to use this command.");
vehicle = CreateVehicle(559,x+4,y+1,z+3,179.3656,6,1,6000000);
PutPlayerInVehicle(playerid, vehicle, 0);
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;
}
Originally Posted by Thrarod
It should add when you spawn it... Dont see onvehiclespawn part?
|
Originally Posted by Thrarod
Nope, I tested it and It only worked on RCOn but it didn't add comps to the car even theyre in OVS callback :S
|