08.03.2015, 17:09
Heey
I have a script but won't work. It is a script to auto open a gate when in area of gate. ONLY if you are donator rank.
The gate works but it bugs: I can see all players but some players are "AFK" in-game when they aint AFK.
I know, return 0; doesn't need here, but if I don't put it there I get a lot of errors and I tried everything. Also return 1; Is double because the script won't work because of the errors.
My script (BAD):
Who can fix it?
I have a script but won't work. It is a script to auto open a gate when in area of gate. ONLY if you are donator rank.
The gate works but it bugs: I can see all players but some players are "AFK" in-game when they aint AFK.
I know, return 0; doesn't need here, but if I don't put it there I get a lot of errors and I tried everything. Also return 1; Is double because the script won't work because of the errors.
My script (BAD):
PHP код:
public OnPlayerUpdate(playerid){
if(PlayerInfo[playerid][dRank]<1)
return 0;
{
if(IsPlayerInRangeOfPoint(playerid,8,-308.49820, 1508.65869, 74.33560))
{
MoveObject(autogate,-308.49820, 1508.65869, 68.10109,3);
SetTimer("close",4000,0);
return 1;
}
return 1;
}
}