30.07.2010, 13:26
pawn Код:
// TOP
forward DoorCheck();
// ANYWHERE
public DoorCheck()
{
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerInRangeOfPoint(i, doorx, doory, doorz, 1)
{
SetPlayerPos(i, yourx, youry, yourz);
SetPlayerFacingAngle(i, facingangle); // Remove if not needed :)
}
}
}
// ONGAMEMODEINIT
SetTimer("DoorCheck",2000,1);