public PDGates() { for(new i = 0; i < GetMaxPlayers(); i++) { if (PlayerToPoint(5,i,1544.755, -1623.9292, 13.352) { if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pLeader] == 18 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 1 { SetObjectRot(glob0, 0.0, 0.0, 269.818; SetTimer("lspdbarrierclose", 3000, false); return 1; } } if (PlayerToPoint(5,i,1586.75, -1638.38, 14)) { if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 1 { MoveObject(pdgate,1586.75, -1638.38, 9, 5); SetTimer("GateClose", 5000, 0); return 1; } } } return 1; } |
Originally Posted by Miokie*
What are you aiming to do in that script?
and what's happening when you try and do it? |