14.08.2010, 13:27
try this:
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 1497.13, 1508.89, 9.83)) return SendClientMessage(playerid, COLOR_RED, "You aren't near the gate");
MoveObject(object,1587.690,-1437.827,4.755, 2.50);
SetTimer("close", 7000, 0);//gate will be closed for 7 seconds
SendClientMessage(playerid,COLOR_LGREEN,"You are opening a Gate, and will be closed automaticly..");
PlayerPlaySound(playerid,1153,0.0,0.0,0.0);
return 1;
}