Script problem: When use script server bugs.
#6

PHP код:
new autogate;  

Forward:  

forward close();  

On the bottom of the gamemode:  

public 
close()  
{  
MoveObject(autogate,-308.498201508.6586974.33560,3);  
return 
1;  
}  

Under GameModeInit:  

autogate CreateObject(987, -308.498201508.6586974.33560,   0.000000.000000.00000);  

Under OnPlayerUpdate:  
public 
OnPlayerUpdate(playerid)

    if(
PlayerInfo[playerid][dRank] < && IsPlayerInRangeOfPoint(playerid8, -308.498201508.6586974.33560))
    {
        
MoveObject(autogate, -308.498201508.6586968.101093); 
        
SetTimer("close"40000);
    } 

    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)