public CheckGate()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305)) MoveDynamicObject(LSPDGate, 266.25262451172, 96.629951477051, 1002.5570678711 ,5.0);
}
else MoveDynamicObject(LSPDGate, 266.30337524414, 92.817451477051, 1002.5568237305, 2.0);
}
public OnGameModeInit()
{
LSPDGate = CreateDynamicObject(971, 266.30337524414, 92.817451477051, 1002.5568237305, 0.000000, 0.000000, 270.27026367188,-1,-1,-1,200);
SetTimer("CheckGate",1000,true);
return 1;
}
#include <streamer>
//Forwards
forward CheckGate();
//Other
new LSPDGate;
C:\CnR SA-MP Server\gamemodes\CnR.pwn(133) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Originally Posted by Joe Staff
Someone changed it after I had, and changed it so it was incorrect
![]() But the wiki is now correct. |
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);
}
if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305))jailgate_status=1;
Originally Posted by Joe Staff
Because 1.0 meters in-game is very very short.
You could spit on a guy that close. |