[HELP]OnPlayerEnterVehicle Not working properly
#1

Well OnPlayerEntervehicle is working but not with my code it is supposed to not let them in the vehicles if there not a donator.For donator rank 1 is supposed to let them in if there a donator lvl 1 but if not it is supposed to not let them enter it but it doesnt work :S
Код:
	if (GetVehicleModel(vehicleid) == 481 && !ispassenger)
		{
		  if(PlayerInfo[playerid][pDonateRank]== 1) 
			 {

				SendClientMessage(playerid,COLOR_LIGHTRED," Warning:You don't have permission to ride this (Need to be a donator)");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx, cy, cz);
			}
	 }
	 if (GetVehicleModel(vehicleid) == 468 || GetVehicleModel(vehicleid)== 541 || GetVehicleModel(vehicleid)== 521 && !ispassenger)
		{
		  if(PlayerInfo[playerid][pDonateRank]== 2)
			 {

				SendClientMessage(playerid,COLOR_LIGHTRED," Warning:You don't have permission to ride this (Need to be a donator Gold Membership)");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx, cy, cz);
			}
	 }
Reply


Messages In This Thread
[HELP]OnPlayerEnterVehicle Not working properly - by Lilcuete - 06.06.2010, 13:56
Re: [HELP]OnPlayerEnterVehicle Not working properly - by Lilcuete - 06.06.2010, 14:43
Re: [HELP]OnPlayerEnterVehicle Not working properly - by Lilcuete - 17.06.2010, 00:49
Re: [HELP]OnPlayerEnterVehicle Not working properly - by zombie13333 - 17.06.2010, 02:18

Forum Jump:


Users browsing this thread: 1 Guest(s)