09.11.2010, 23:13
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
new model = GetVehicleModel(vid);
if((model == 597 || model == 599) && gTeam[playerid] == CIVILIAN)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "You can NOT Enter a Police Vehicle");
}
}
return 1;
}