OnPlayerKeyStateChange.
#1

Hi all.Now i need some help with keys here:

Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if (newkeys & KEY_CROUCH)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, X, Y, Z))
{
GameTextForPlayer(i,"~b~Please stop",3000,5);
}
}
}
How you see,i want to do when player press KEY_CROUCH then nearest players gets gametext i have to that,but how to do that who pressed key not get this game text
Reply


Messages In This Thread
OnPlayerKeyStateChange. - by budelis - 11.08.2011, 14:34
Re: OnPlayerKeyStateChange. - by XGh0stz - 11.08.2011, 14:42
Re: OnPlayerKeyStateChange. - by MadeMan - 11.08.2011, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)