13.07.2011, 17:37
Change the 'VARIABLE' with your set variable. Whether it's stored in an enum or what-ever, simply replace it.
Example, in your enum you have lets say 'pLocked', it would then be:
Example, in your enum you have lets say 'pLocked', it would then be:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(pLocked[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "You can not leave the vehicle.");
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
}
return 1;
}