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);
SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.8923, 3.0);
}
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); }
forward QG(playerid);
public QG(playerid) { SetPlayerCheckpoint(playerid,-1425.7504,-1527.9706,101.8923, 3.0); }
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); } |