Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
1. How do i make it see how far the player is from 5 points, and whichever they are closest to, it sets that as their checkpoint?
2. How to i make it detect when there is 18/20 players on the server?
Posts: 606
Threads: 3
Joined: Apr 2008
Reputation:
0
2. What do you want to detect when there are 18/20 players and what should happen?
Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
If 18/20 players online then player can only join if vip=1 or level is above 0
Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
if(Vip == 0 && slots >=19)
gives me this
C:\Users\Nickolas\Desktop\PWn\Server\gamemodes\bus .pwn(1404) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
Bump
I figured out that issue, how do i do the first thing?
Posts: 686
Threads: 29
Joined: Feb 2011
Reputation:
0
Figure out an equation to relate X,Y,Z of player and all 5 checkpoints, find an average and find which one is smallest difference.
Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
I wanted to use GetPlayerDistanceToPoint(playerid,x,y,z); fora all 5 points but i dont know what value it returns to show distance nor how to make it choose the shortest one.