help about gates
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)