Posts: 188
Threads: 61
Joined: Nov 2012
Hello guys, I been wondering how I can create that? I had that with my old fs Ladmin, but i'm currently creating my own GM with my own admin system.
Here's my enum
Код HTML:
enum PlayerInfo
{
Logged,
Level,
Duty,
pGD,
pTS,
pVip,
pCop,
}
Posts: 954
Threads: 24
Joined: Jul 2012
Reputation:
0
Try something like:
OnPlayerConnect - PlayerInfo[playerid][Logged] = 0;
Login Stuff - PlayerInfo[playerid][Logged]= 1;
OnPlayerDisconnect - PlayerInfo[playerid][Logged] = 0;
Something along those lines, then you can use if(PlayerInfo[playerid][Logged]== 0) << Not logged in
then
if(PlayerInfo[playerid][Logged] == 1) << Is loggedin.
Something like that
Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
What do you exactly want? like if the player's not logged in he can't spawn? or what?
Posts: 188
Threads: 61
Joined: Nov 2012
Yeah exactly, no spawn before he's logged in, fix it for me and ill +1 on u.
Posts: 188
Threads: 61
Joined: Nov 2012
Testing it out right now, if it works, ill rep you.
Posts: 188
Threads: 61
Joined: Nov 2012
@Dominik123,
It works, thanks!