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.