Vehicle type
#6

it was like this.
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(gTeam[playerid] == TEAM_CIVIL && ServerVehicle[vehicleid][Type] == VEHICLE_TYPE_LEO)
		{ 
			SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 3);
			SendClientMessage(playerid, -1, "You have stolen a Law Enforcement Vehicle and therefor got wanted!");
			return 1;
		}
	if(gTeam[playerid] == TEAM_CIVIL && ServerVehicle[vehicleid][Type] == VEHICLE_TYPE_ARMY)
		{ 
			SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 3);
			SendClientMessage(playerid, -1, "Only the army is able to use these vehicles, you got wanted for attempting to steal one!");
			return 1;
		}
	return 1;
}
Reply


Messages In This Thread
Vehicle type - by yvoms - 31.12.2015, 12:05
Re: Vehicle type - by yvoms - 01.01.2016, 17:17
Re: Vehicle type - by yvoms - 01.01.2016, 18:35
Re: Vehicle type - by jlalt - 01.01.2016, 18:42
Re: Vehicle type - by yvoms - 01.01.2016, 19:19
Re: Vehicle type - by yvoms - 01.01.2016, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)