OnPlayerUpdate And GangZone Problem
#1

I used this code to protect my house from others ...
so i want it to do things just once , but if player has no key, he will be teleported by system every 2 seconds !!!!
and he cant move because he is teleporting every 2 seconds ...
Код:
public OnPlayerUpdate(playerid)
{
	if(IsPlayerInArea(playerid, X,Y,Z))
	{
	    if(HasPlayerKey(playerid))
	    {
			SendClientMessage(playerid,COLOR_WHITE,"Hi, Welcome to My House :)");
		}
		if(!HasPlayerKey(playerid))
		{
			SendClientMessage(playerid,COLOR_WHITE,"You Can Not Enter Without Key.");
   			Wait(2000);
			SetPlayerPos(playerid,-1445.2992, -1500.8733, 102.1641);
		}
	}
	return 1;
}
Help me Please
Reply


Messages In This Thread
OnPlayerUpdate And GangZone Problem - by lonalovegood1 - 23.04.2014, 11:10
Re: OnPlayerUpdate And GangZone Problem - by BroZeus - 23.04.2014, 11:14
Re: OnPlayerUpdate And GangZone Problem - by Konstantinos - 23.04.2014, 11:17
Re: OnPlayerUpdate And GangZone Problem - by lonalovegood1 - 23.04.2014, 11:36
Re: OnPlayerUpdate And GangZone Problem - by Konstantinos - 23.04.2014, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)