22.04.2010, 07:29
Quote:
Originally Posted by Joe Staff
Someone changed it after I had, and changed it so it was incorrect
![]() But the wiki is now correct. |
I have this:
pawn Код:
public CheckGate()
{
new jailgate_status;
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305))jailgate_status=1;
}
if(jailgate_status)MoveDynamicObject(LSPDGate, 266.25262451172, 96.629951477051, 1002.5570678711,6.0);
else MoveDynamicObject(LSPDGate, 266.30337524414, 92.817451477051, 1002.5568237305, 6.0);
}
pawn Код:
if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305))jailgate_status=1;