Small problem [+rep]
#1

Well I have the problem that this command is not doing what it's supposted to

Код HTML:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == Missioncar)
 	{
  		if(GetPlayerTeam(playerid) == 2)
    	{
			SendClientMessage(playerid, COLOR_WHITE, "<!>Head to the marker which is added to your minimap!");
			SendClientMessage(playerid, COLOR_WHITE, "<!>If you succed in the mission you will be awarded!");
			return 1;
		}
		if(GetPlayerTeam(playerid) == 1)
		{
		    SendClientMessage(playerid, COLOR_WHITE, "<!>You must be USA team to drive this vehicle!");
		    RemovePlayerFromVehicle(playerid);
		    return 1;
		}
	}
	return 1;
}
If you are team 2 it should say:
Код HTML:
SendClientMessage(playerid, COLOR_WHITE, "<!>Head to the marker which is added to your minimap!");
			SendClientMessage(playerid, COLOR_WHITE, "<!>If you succed in the mission you will be awarded!");
And if you are team 1 it should do and say:
Код HTML:
		    SendClientMessage(playerid, COLOR_WHITE, "<!>You must be USA team to drive this vehicle!");
		    RemovePlayerFromVehicle(playerid);
But nothing is happening when player is entering the vehicle..
No problems while compiling
Reply


Messages In This Thread
Small problem [+rep] - by Twinki1993 - 12.01.2012, 18:24
Re: Small problem [+rep] - by Fj0rtizFredde - 12.01.2012, 18:27
Re: Small problem [+rep] - by Twinki1993 - 12.01.2012, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)