Problem With Script: all players are afk
#1

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):

PHP код:
    public OnPlayerUpdate(playerid){
    if(
PlayerInfo[playerid][dRank]<1)
    return 
0;
    {
    if(
IsPlayerInRangeOfPoint(playerid,8,-308.498201508.6586974.33560))
{
    
MoveObject(autogate,-308.498201508.6586968.10109,3);
    
SetTimer("close",4000,0);
    return 
1;
}
    return 
1;
}

Who can fix it?
Reply


Messages In This Thread
Problem With Script: all players are afk - by Fantje - 08.03.2015, 17:09
Re: Problem With Script: all players are afk - by Misiur - 08.03.2015, 17:17
Re: Problem With Script: all players are afk - by Fantje - 08.03.2015, 17:21
Re: Problem With Script: all players are afk - by Fantje - 08.03.2015, 19:00
Re: Problem With Script: all players are afk - by SKAzini - 08.03.2015, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)