Flying time help?
#3

PHP код:
new OneSecTime;
new 
Float:ZPos[MAX_PLAYERS];
stock IsAPlane(carid){switch(GetVehicleModel(carid)){case 592,577,511,512,593,520,553,476,519,460,513,548,417,487,488,497,563,447,469:return true;}return false;}
public 
OnGameModeInit()
{
    
OneSecTime SetTimer("OneSec"1000,1);
    return 
1;
}
forward OneSec();
public 
OneSec()
{
    foreach(new 
Player)
    {
        new 
Float:x,Float:y,Float:z;
        
GetPlayerPos(ixyz);
        
ZPos[i] = z;
        if(
IsAPlane(GetPlayerVehicleID(i) && ZPos[i] > 30// Change ZPos as you want
        
{
            
// Your Time Script
        
}
    }

Reply


Messages In This Thread
Flying time help? - by Biro - 22.02.2018, 17:11
Re: Flying time help? - by DobbysGamertag - 22.02.2018, 17:23
Re: Flying time help? - by DeMoo - 22.02.2018, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)