06.12.2014, 06:51
PHP код:
forward lspdgate();
public lspdgate()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInCheckpoint(i)==lspdcheckpoint)
{
return 1;
}
}
}
KillTimer(lspdgatetimer);
if(lspdgateopen==1)
{
MoveObject(lspdgate1, 1544.64209, -1622.27417, 13.99633, 1.0);
MoveObject(lspdgate2, 1544.68726, -1626.48511, 14.01554, 1.0);
lspdgateopen=0;
}
return 1;
}
This function only returns 'true', or 'false'! Therefore, it will never be equal to a checkpoint ID.
KillTimer(lspdgatetimer);
This should go at the bottom, after closing the gate.