28.06.2009, 13:25
yes, because OnPlayerUpdate resume after one second
pawn Код:
public OnPlayerUpdate(playerid)
{
new xtr[MAX_PLAYERS]=0;
if (PlayerToPoint(2.0, playerid, 1750.0591,-1592.9020,13.5422))
{
if(xtr[playerid]==0)
{
xtr[playerid]++;
SendClientMessage(playerid, 0x00FF00FF, "SPRUNK MACHINE: Drink by pressing F one time");
}
}else xtr[playerid]=0;
return 1;
}