[Solved]Thnx To Mansonh!
#1

ok i added a system in my gamemode that player can only enter hydras and rustlers but problem is : when i put the code in the gamemode script , it blocks all players (it set to block players and allow admins) and if putted in admin script , it does nothing , here is the code :::

Код:
//==============================================================================
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if(PlayerInfo[playerid][Level] < 1)
	{
		new vehicleid = GetPlayerVehicleID(playerid);
		new modelid = GetVehicleModel(vehicleid);
		if(newkeys == 2 || newkeys == 3)
		{
			if(modelid != 476 && modelid != 520)
			{
				RemovePlayerFromVehicle(playerid);
				SendClientMessage(playerid,0xFF9900AA, "This vehicle is not allowed!");
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
[Solved]Thnx To Mansonh! - by hvampire - 08.02.2010, 02:43
Re: help? - by mansonh - 08.02.2010, 04:18
Re: help? - by hvampire - 08.02.2010, 20:00

Forum Jump:


Users browsing this thread: 2 Guest(s)