21.10.2009, 22:54
i want to know if there is a code to only allows the Admins to have the cop skins and cop cars (i hope someone didn't ask this already)
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; }
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. |
Originally Posted by ╔Jigsaw╗
That's what I said...
This isn't a script request thread, I assumed he knew how to do something. Read the whole post before bitching please. Also, there's nothing else to define, so I don't know what the hell you're talking about. |
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
Quote:
btw i have no idea how to code im am super noob lol |