KillTimer
#3

Try it without the timer repeating.

PHP код:
// Somewhere in your script...
PlayerTemp[playerid][CPTimer] = SetTimerEx("TracenCP"2000false"dd"playeridtargetID);  
function:
TracenCP(playeridtargetID

    if(
IsPlayerInAnyInterior(targetID) || PlayerTemp[targetID][phoneoff] != || !IsPlayerConnected(targetID)) 
    { 
        
DisablePlayerCheckpoint(playerid); 
        
SendClientWarning(playerid"Tracing failed."); 
        return 
1
    } 
    new 
Float:position[3]; 
    
GetPlayerPos(targetIDposition[0], position[1], position[2]); 
    
SetPlayerCheckpoint(playeridposition[0], position[1], position[2], 2.0);
    
PlayerTemp[playerid][CPTimer] = SetTimerEx("TracenCP"2000false"dd"playeridtargetID);  
    return 
1

Reply


Messages In This Thread
KillTimer - by Amit1998 - 29.07.2017, 21:57
Re: KillTimer - by Paulice - 29.07.2017, 22:05
Re: KillTimer - by iamjems - 29.07.2017, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)