Kicking low score's from helicopters: Need help
#1

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if (GetPlayerVehicleID(playerid) == 497)
	{
	  if (GetPlayerScore(playerid) < 5 )
	  {
			RemovePlayerFromVehicle(playerid);
			GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5);
			SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help.");
		}
	}
	if (GetPlayerVehicleID(playerid) == 487)
	{
	  if (GetPlayerScore(playerid) < 5 )
	  {
			RemovePlayerFromVehicle(playerid);
			GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5);
			SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help.");
		}
	}
	if (GetPlayerVehicleID(playerid) == 563)
	{
	  if (GetPlayerScore(playerid) < 5 )
	  {
			RemovePlayerFromVehicle(playerid);
			GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5);
			SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help.");
		}
	}
	if (GetPlayerVehicleID(playerid) == 548)
	{
	  if (GetPlayerScore(playerid) < 5 )
	  {
			RemovePlayerFromVehicle(playerid);
			GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5);
			SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help.");
		}
	}


	return 1;
}
Doesn't seem to work. I'm quite not very good at this, so no wonder. Basicly, I want you to be kicked from helicopters when you enter them(the ID's are 548, 563, 487, 497) if your score is below 5.

Any ideas?(;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)