11.09.2012, 03:13
Here u go
gimme a rep if this works. Not Tested.
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Joined[playerid] == true)
{
JoinCount--;
Joined[playerid] = false;
DestroyVehicle(CreatedRaceVeh[playerid]);
DisablePlayerRaceCheckpoint(playerid);
TextDrawHideForPlayer(playerid, RaceInfo[playerid]);
CPProgess[playerid] = 0;
KillTimer(InfoTimer[playerid]);
TogglePlayerControllable(playerid, true);
SetCameraBehindPlayer(playerid);
#if defined RACE_IN_OTHER_WORLD
SetPlayerVirtualWorld(playerid, 0);
#endif
SendClientMessage(playerid, -1, "You left your vehicle and lost the race <!>");
}
return 1;
}