31.05.2010, 03:31
I have no fucking clue what's causing it. There's two things dealing with the taxis in this script, which are..
My forward:
Dealing with the forward:
Checkpoint 35: (End)
This is what happens in-game: (Basically, a bunch of cars spawn ontop of them (how the fuck?) and just have a giant orgy, the blow up, and do it again)
[img width=957 height=768]http://i48.tinypic.com/23h4rq0.jpg[/img]
My forward:
pawn Код:
forward IsInTaxi(carid);
pawn Код:
public IsInTaxi(carid)
{
new carmodel = GetVehicleModel(carid);
if(carmodel == 420)
{
return 1;
}
return 0;
}
pawn Код:
else if(strcmp(name, "taxi", true) == 0)
{
if(IsInTaxi(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, orange, "[OBJECTIVE]: Drive your taxi to the checkpoints, driving as carefully as possible.");
SendClientMessage(playerid, white, "[HINT]: The less damage taken, the more you will get paid.");
Checkpoint[playerid] = 24;
SetPlayerCheckpoint(playerid, 1818.8019,-1911.5210,13.1685, 3);
}
}
pawn Код:
else if(Checkpoint[playerid] == 35) //Taxi End
{
new Float:health;
new veh;
new vehicle;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health > 900) { SendClientMessage(playerid, white, "Your taxi was returned in excellent condition, you have earned $40."); SGivePlayerMoney(playerid, 40); }
if(health < 800) { SendClientMessage(playerid, white, "Your taxi was returned in poor condition, you have earned $20."); SGivePlayerMoney(playerid, 20); }
Checkpoint[playerid] = 0;
vehicle = GetPlayerVehicleID(playerid);
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicle);
DisablePlayerCheckpoint(playerid);
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
}
[img width=957 height=768]http://i48.tinypic.com/23h4rq0.jpg[/img]