Auto gate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto gate (
/showthread.php?tid=167954)
Auto gate -
FireCat - 14.08.2010
HELP! im so annoyed i cant understand!!!!!!
Код:
if(IsPlayerInRangeOfPoint(playerid, 1497.13, 1508.89, 9.83))
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);
}else{
SendClientMessage(playerid, COLOR_RED, "You anrt near the gate");
return 1;
}
but he opens even if im space and always says server unknowned command -.-' HELP!!!!
_______________________
[GDZ]leader
expertprogrammer please dont post!
Re: Auto gate -
Bessensap - 14.08.2010
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;
}
Re: Auto gate -
FireCat - 14.08.2010
nop didnt work D: