need help
#1

i use ladmin4v2 , and i use the mustlogin and must register but all what it do is : setplayerhealth at 0 then force class selection , i want it to stop him from spawning like when he press spawn button , nothing happens , 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;
	}

	if(ServerInfo[MustRegister] == 1 && PlayerInfo[playerid][Registered] == 0)
	{
 		GameTextForPlayer(playerid,"~r~Please Type /register [Password] Before Playing!",4000,3);
 		SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
		return 1;
	}
return 1;
}
________
AVANDIA HELP
Reply


Messages In This Thread
need help - by aircombat - 23.02.2010, 17:43
Re: need help - by Doppeyy - 23.02.2010, 17:51
Re: need help - by aircombat - 23.02.2010, 17:53
Re: need help - by VonLeeuwen - 23.02.2010, 17:53
Re: need help - by Doppeyy - 23.02.2010, 17:53

Forum Jump:


Users browsing this thread: 2 Guest(s)