23.10.2011, 16:57
I know i can just remove the
But the code he gave me i dont exactly have a code that gets if the player is logged in or not
I recently added the enum pConnected but not exactly sure how to use it. cause right now my code looks like
I was thinking maybe using OnPlayerDisconnect to write something like
And OnPlayerLogin
INI_WriteInt(File,"Logged",PlayerInfo[playerid][pConnected]= 1);
But im not sure if any of that is correct or not
pawn Код:
Kick(playerid);
I recently added the enum pConnected but not exactly sure how to use it. cause right now my code looks like
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(login[playerid]/*change this to ur own variable*/ == 0) // 0 = not logged in and 1 = logged in
{
SendClientMessage(playerid,colors,message); // u must change the colors and the message
Kick(playerid);
}
return 1;
}
pawn Код:
INI_WriteInt(File,"Logged",PlayerInfo[playerid][pConnected]= 0);
INI_WriteInt(File,"Logged",PlayerInfo[playerid][pConnected]= 1);
But im not sure if any of that is correct or not