Slap when car is for another factions
#1

Hi i want when a playerwants to enter factions cars If not for her faction (automatic slapped for 4sec)
Код:
if(IsACopCar(newcar))
		{
		    if(IsACop(playerid))
			{
				if(OnDuty[playerid] != 1) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "You are not on duty."); }
			}
		    else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "This vehicle is locked to group Los Santos Police Department."); }
		}
		if(IsAFbiCar(newcar))
		{
		    if(IsACop(playerid))
			{
				if(OnDuty[playerid] != 1) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "You are not on duty."); }
			}
		    else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "This vehicle is locked to group Federal Bureau of Investigations."); }
		}
		if(IsALVPDCar(newcar))
		{
		    if(IsACop(playerid))
			{
				if(OnDuty[playerid] != 1) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "You are not on duty."); }
			}
		    else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "This vehicle is locked to group Las Venturas Police Department."); }
		}
		if(IsANgCar(newcar))
		{
		    if(IsACop(playerid))
			{
				if(OnDuty[playerid] != 1) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "You are not on duty."); }
			}
		    else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "This vehicle is locked to group National Guard."); }
		}
Reply


Messages In This Thread
Slap when car is for another factions - by marshmallow - 28.05.2018, 06:03
Re: Slap when car is for another factions - by andrejc999 - 28.05.2018, 06:07
Re: Slap when car is for another factions - by marshmallow - 28.05.2018, 06:14
Re: Slap when car is for another factions - by andrejc999 - 28.05.2018, 06:42
Re: Slap when car is for another factions - by marshmallow - 28.05.2018, 06:55
Re: Slap when car is for another factions - by andrejc999 - 28.05.2018, 07:11

Forum Jump:


Users browsing this thread: 1 Guest(s)