23.11.2012, 18:17
(
Последний раз редактировалось Biess; 23.11.2012 в 19:37.
)
Hello, today i got a question i have
But i want it if the player does login after the message showed he will be returned to the class selection use this
Thanks!
pawn Код:
forward LoginKick(playerid);
public LoginKick(playerid)
{
if(PInfo[playerid][Logged] == 0)
{
Kick(playerid);
SendClientMessage(playerid, 0xFF0000FF,"You have been kicked for not logging in 15 seconds!");
TogglePlayerControllable(playerid,false);
}
else
{
FirstLogin[playerid] = 1;
}
return 1;
}
pawn Код:
ForceClassSelection(playerid);