how to make police car and skin for admins only
#3

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.
Useless code , you need to forward IsACopCar first and make several defines
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)