Looking for a function to check if a player is new
#2

Quote:
Originally Posted by Jamcraftadam
Посмотреть сообщение
Hello, I wanted to make an rp server, but im only stuck on one thing, making new players spawn at a position, if there is, what can i do to make new players spawn at a specified position.
DO you mean new players, whohave just entered the server? Or who entered it the first time in their life?

In case of first occation:
1.Create a player variable, for example:
Код:
 NewPlayer[MAX_PLAYERS];
2.To OnPlayerConnect put:
Код:
 NewPlayer[playerid]=1;
3.To OnPlayerDisconnect put:
Код:
 NewPlayer[playerid]=0;
4.In OnPlayerSpawn put:
pawn Код:
if(NewPlayer[playerid] == 1) SetPlayerPos(/*set position for new player*/);
else SetPlayerPos(/*Set position for old players*/);
In case of second occation: You need to use registration system
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)