Protecting Vehicles Based On Skins
#6

Quote:
Originally Posted by Dennis_Smith
Посмотреть сообщение
It has no effect, yet no errors. Is there something I'm doing wrong here? I used your condition. And for the record, I already tried it without my removeswitch variable.

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

	new playersVehicle = GetPlayerVehicleID(playerid), playersSkin = GetPlayerSkin(playerid);
	if(48 < playersVehicle < 70 && playersSkin != 286 && playersSkin != 287)
	{
	    removeswitch[playerid] = 1;
	    SendClientMessage(playerid,COLOR_RED,"LEAVE THIS VEHICLE ALONE!");
	}
	return 1;
}
If you're gonna use it in OnPlayerEnterVehicle, replace playersVehicle with vehicleid.
Reply


Messages In This Thread
Protecting Vehicles Based On Skins - by Dennis_Smith - 18.11.2012, 03:00
Re: Protecting Vehicles Based On Skins - by SuperViper - 18.11.2012, 03:17
Re: Protecting Vehicles Based On Skins - by Dennis_Smith - 18.11.2012, 03:38
Re: Protecting Vehicles Based On Skins - by Azazelo - 18.11.2012, 03:58
Re: Protecting Vehicles Based On Skins - by mastermax7777 - 18.11.2012, 03:59
Re: Protecting Vehicles Based On Skins - by SuperViper - 18.11.2012, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)