23.04.2014, 11:10
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 ...
Help me Please
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; }