Quote:
Originally Posted by marrcko
Well.. use timer for 1sec. which get actived then player enter to checkpoint...After that check if player is in right place with PlayerToPoint (if u have this stock) and count seconds like:
pawn Код:
public StandInPlace(playerid) { if(TimeInPlace[playerid] < 20) // 20 - 20sec { if(PlayerToPoint(3,playerid,X,Y,Z) { TimeInPlace[playerid]++ } else KillTimer(timerid); } else { TimeInPlace[playerid]=0; //do smth after player stand in place 20sec... } return 1; }
ofcourse dont foget as global
pawn Код:
TimeInPlace[MAX_PLAYERS]=0
|
Thanks dude,How can i use this if someone is in checkpoint?