22.03.2010, 14:57
Er... back again with a new bug (in my opinion)
When i try to use OnPlayerUpdate feature to make something automatically happen..
EX.: I've created a park, when you get near the gate you automatically pay $50, then the gate will open and you will enter, the gate will close in few seconds
Problem: Everything is working good, but.. i am getting spammed with the game texts and client messages..!!
When i try to use OnPlayerUpdate feature to make something automatically happen..
EX.: I've created a park, when you get near the gate you automatically pay $50, then the gate will open and you will enter, the gate will close in few seconds
Problem: Everything is working good, but.. i am getting spammed with the game texts and client messages..!!
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 1667.80, -1547.85, 13.38))
{
GameTextForPlayer(playerid, "You've paid a fee of $50 for entering the park!", 5000, 1);
MoveObject(LSCP1, 1668.717896, -1479.989502, 13.38, 1);
SendClientMessage(playerid, 0x8080FFFF, "Gate will close in few seconds");
GivePlayerMoney(playerid, -50);
SetTimer("LSCP1Timer", 7000, 0);
}
}