login question
#1

i am using ladmin4v2 and i am using the "Must Login" but all what it do is to kill the player if he spawned without login is there a way to make the player can't spawn exept when he login , here is the script :

Код:
public OnPlayerSpawn(playerid)
{
if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0)
	{
		GameTextForPlayer(playerid,"~r~Please Login Before Spawning!",4000,3);
		SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
		return 1;
	}
return 1;
}
Код:
forward DelayKillPlayer(playerid);
public DelayKillPlayer(playerid)
{
	SetPlayerHealth(playerid,0.0);
	ForceClassSelection(playerid);
}
________
HARMED BY NEXIUM
Reply


Messages In This Thread
login question - by aircombat - 21.02.2010, 13:59
Re: login question - by Rizard - 21.02.2010, 14:27
Re: login question - by aircombat - 21.02.2010, 19:16
Re: login question - by aircombat - 22.02.2010, 12:20

Forum Jump:


Users browsing this thread: 1 Guest(s)