Block entering vehicle
#1

Hello,

I tried eveything to get the player away from a cop car
if they are not a LEO. I made this to test it out but it didn't
worked:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 if(vehicleid == 596)
	{
		if(PlayerInfo[playerid][pFaction] != 1)
		{
		    new Float:X, Float:Y, Float:Z;
		    GetPlayerPos(playerid, X, Y, Z);
		    SetPlayerPos(playerid, X, Y, Z);
		    SendClientMessage(playerid, COLOR_GREY, "YOU DONT HAVE THE KEYS");
		}
	}
	return 1;
}
but it doesn't wokr, how to do this on the right wy?

thank!
Reply


Messages In This Thread
Block entering vehicle - by Ihsan-Cingisiz - 20.03.2011, 10:29
Re: Block entering vehicle - by JamesC - 20.03.2011, 10:33
Re: Block entering vehicle - by Jochemd - 20.03.2011, 11:40
Re: Block entering vehicle - by dice7 - 20.03.2011, 11:46
Re: Block entering vehicle - by Jochemd - 20.03.2011, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)