Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Hello, I wana show rules when a player spawns for first time after connecting, not everytime he spawns. If I add it under OnPlayerSpawn, it will show rules each time player spawns, any idea how do I do that? Only once, the first spawn after the player connects.
Posts: 9
Threads: 1
Joined: Apr 2016
Reputation:
0
I think
If(PlayerInfo[playerid][Registered] == 1) {
Ur rules
Return 1;
}
Posts: 9
Threads: 1
Joined: Apr 2016
Reputation:
0
I meant
if(PlayerInfo[Playerid][Registered] == 0 ) {
\\ Ur rules
Return 1; // so if player isn't registered the rules dialog will appear
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
This is not at all associated with registration system, what are you trying to prove / say?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
OnPlayerConnect set a global variable to 0. OnPlayerSpawn, if variable is 0 it's first time spawn. Then increment variable. Not that hard.
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Hi, I thought of this, isn't there any other way? Rather than declaring a variable?
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
You've done the same thing, lol. But thanks.