05.03.2012, 16:36
Or, you're checking it with a boolean:
Under "OnPlayerLogin" add this:
Then, you could - as Dwane already said - check whether the player's logged in or not:
pawn Код:
bool:loggedIn[MAX_PLAYERS];
pawn Код:
loggedIn[playerid] == true;
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(loggedIn[playerid] == false)
{
SendClientMessage(playerid, -1, "You'll have to login before changing / choosing classes!");
return 0;
}
//rest