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

Код:
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)