22.02.2010, 21:10
hey guys i recently made a garbage truck job and added it to my server i added the addstaticvehicles as so:
AddStaticVehicleEx(408,2170.0000,-1984.2969,14.0998,270.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2170.0000,-1978.5972,14.1096,270.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2183.7861,-1993.4991,14.0846,360.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2190.9241,-1998.2997,14.0873,360.0000,1,1,60); // Garbage Truck garbagejob
and the job and everything works fine but when i actually go and enter the garbage trucks i automatically get kicked out and frozen for no reason at all.
if(IsAGarbageTruck(newcar))//garbagejob
{
if(PlayerInfo[playerid][pJob] == 24)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " INFO: You can collect rubbish for a pay check.");
SendClientMessage(playerid, COLOR_WHITE, " INFO: Type /collect to get started");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " You are not a Garbage Collector.");
}
}
and the job is id 24 and it does show up the messages stated:
SendClientMessage(playerid, COLOR_LIGHTBLUE, " INFO: You can collect rubbish for a pay check.");
SendClientMessage(playerid, COLOR_WHITE, " INFO: Type /collect to get started
the problem as i have said is that it just kicks me could someone help. (if you need other stuff from the script then please ask)
AddStaticVehicleEx(408,2170.0000,-1984.2969,14.0998,270.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2170.0000,-1978.5972,14.1096,270.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2183.7861,-1993.4991,14.0846,360.0000,1,1,60); // Garbage Truck garbagejob
AddStaticVehicleEx(408,2190.9241,-1998.2997,14.0873,360.0000,1,1,60); // Garbage Truck garbagejob
and the job and everything works fine but when i actually go and enter the garbage trucks i automatically get kicked out and frozen for no reason at all.
if(IsAGarbageTruck(newcar))//garbagejob
{
if(PlayerInfo[playerid][pJob] == 24)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " INFO: You can collect rubbish for a pay check.");
SendClientMessage(playerid, COLOR_WHITE, " INFO: Type /collect to get started");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " You are not a Garbage Collector.");
}
}
and the job is id 24 and it does show up the messages stated:
SendClientMessage(playerid, COLOR_LIGHTBLUE, " INFO: You can collect rubbish for a pay check.");
SendClientMessage(playerid, COLOR_WHITE, " INFO: Type /collect to get started
the problem as i have said is that it just kicks me could someone help. (if you need other stuff from the script then please ask)