29.11.2014, 10:46
Quote:
@Raweresh - Why not RemovePlayerFromVehicle?
pawn Код:
|
Here's my current OnPlayerStateChange, if you want it.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if((newstate == PLAYER_STATE_DRIVER) && IsABumperCar(GetPlayerVehicleID(playerid)))
{
if(!pChip[playerid] || bRoundStarted) { RemovePlayerFromVehicle(playerid); }
else
{
SendClientMessage(playerid,0xFFFFFFAA,"* You inserted your chip into the car");
SendClientMessage(playerid,0xFFFFFFAA,"* Please wait for the next round.");
pChip[playerid]=0;
TogglePlayerControllable(playerid,0);
}
}
return 1;
}