SA-MP Forums Archive
SetPlayerCheckPoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerCheckPoint (/showthread.php?tid=614263)



SetPlayerCheckPoint - Skinnz - 06.08.2016

hello, i have a problem

PHP Code:
if(IsPlayerInRangeOfPoint(playerid3.0, -1425.7504,-1527.9706,101.8923)){
        
DisablePlayerCheckpoint(playerid);
          
RemovePlayerAttachedObject(playerid7);
        
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
        
Wheats[playerid] +=1;
        
SetPlayerCheckpoint(playerid,POS_QGFERMIER3.0);
    }
    if(
IsPlayerInRangeOfPoint(playerid3.0POS_QGFERMIER)){
        
DisablePlayerCheckpoint(playerid);
        
        
SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.89233.0);
    } 
The checkpoint " SetPlayerCheckpoint(playerid,POS_QGFERMIER, 3.0); " appear but " SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.8923, 3.0); " does not appear


Re: SetPlayerCheckPoint - FuNkYTheGreat - 06.08.2016

I think because it is in Air !


Respuesta: SetPlayerCheckPoint - Skinnz - 06.08.2016

No.
CreatePickup(1239, 1, -1425.7504,-1527.9706,101.8923,-1);
the pickup appear and that is floor


Respuesta: SetPlayerCheckPoint - Skinnz - 06.08.2016

please ?


Re: SetPlayerCheckPoint - Sirop - 06.08.2016

HTML Code:
if(IsPlayerInRangeOfPoint(playerid, 3.0, -1425.7504,-1527.9706,101.8923)){ 
        DisablePlayerCheckpoint(playerid); 
          RemovePlayerAttachedObject(playerid, 7); 
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE); 
        Wheats[playerid] +=1; 
        SetPlayerCheckpoint(playerid,POS_QGFERMIER, 3.0); 
    } 
    if(IsPlayerInRangeOfPoint(playerid, 3.0, POS_QGFERMIER)){ 
        DisablePlayerCheckpoint(playerid); 
        SetTimerEx ( "QG ", 500, false," i ", playerid);
         
    }
HTML Code:
forward QG(playerid);
HTML Code:
public QG(playerid)
{
    SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.8923, 3.0);
}



Re: SetPlayerCheckPoint - K0P - 06.08.2016

Quote:
Originally Posted by Sirop
View Post
HTML Code:
if(IsPlayerInRangeOfPoint(playerid, 3.0, -1425.7504,-1527.9706,101.8923)){ 
        DisablePlayerCheckpoint(playerid); 
          RemovePlayerAttachedObject(playerid, 7); 
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE); 
        Wheats[playerid] +=1; 
        SetPlayerCheckpoint(playerid,POS_QGFERMIER, 3.0); 
    } 
    if(IsPlayerInRangeOfPoint(playerid, 3.0, POS_QGFERMIER)){ 
        DisablePlayerCheckpoint(playerid); 
        SetTimerEx ( "QG ", 500, false," i ", playerid);
         
    }
HTML Code:
forward QG(playerid);
HTML Code:
public QG(playerid)
{
    SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.8923, 3.0);
}
LOL What?
Why a timer?
Use a hook instead!


Re: SetPlayerCheckPoint - Sirop - 06.08.2016

Quote:
Originally Posted by K0P
View Post
LOL What?
Why a timer?
Use a hook instead!
I forgot how it works, you can also show us


Re: SetPlayerCheckPoint - Skinnz - 06.08.2016

Thank you sirop