SA-MP Forums Archive
help about gates - 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: help about gates (/showthread.php?tid=150443)



help about gates - joker20089 - 26.05.2010

Hi All , I Want Your Help Please:
i made some gates in my server but :
If i made

new playerid;

if(IsPlayerInRangeOfPoint(playerid,10.0,2251.2014, 2497.1338,5.0))
{ MoveObject(g5,2251.2014,2497.1338,-3,5);
}
else {
MoveObject(g5,2251.2014,2497.1338,5.0,5);

}

the gate open only for the first player who enter the server

or if i made :
for (new playerid; playerid < MAX_PLAYERS ; playerid ++)
{

if(IsPlayerInRangeOfPoint(playerid,10.0,2251.2014, 2497.1338,5.0))
{ MoveObject(g5,2251.2014,2497.1338,-3,5);
}
else {
MoveObject(g5,2251.2014,2497.1338,5.0,5);

}
the gate open only for the last player enter the server or doesn't open
or if i made :
for (new playerid; playerid < MAX_PLAYERS ; playerid ++)
{

if(IsPlayerInRangeOfPoint(playerid,10.0,2251.2014, 2497.1338,5.0))
{ MoveObject(g5,2251.2014,2497.1338,-3,5);
}
else {
MoveObject(g5,2251.2014,2497.1338,5.0,5);

}
the gate doesn't open



Re: help about gates - [MWR]Blood - 26.05.2010

1.Wrong section, post in scripting discussion
2.Use [pawn] [ /pawn] for pawn codes.