SetPlayerCheckPoint
#1

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
Reply
#2

I think because it is in Air !
Reply
#3

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

please ?
Reply
#5

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);
}
Reply
#6

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!
Reply
#7

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
Reply
#8

Thank you sirop
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)