23.10.2009, 06:36
Quote:
Originally Posted by ╔Jigsaw╗
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsACopCar) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_WHITE, "You have entered a police cruiser"); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "You are NOT an admin!"); RemovePlayerFromVehicle(playerid); } } return 1; } You'll probably get some loose indention warnings from the copy and paste. That should deal with the cars, of course just define the needed stuff. |