18.08.2011, 11:22
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:
ofcourse dont foget as global
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;
}
pawn Код:
TimeInPlace[MAX_PLAYERS]=0