Hmm Somethings wrong or what?
#1

Im trying to make like a little system to allow you to have 1 life per match so im asking 2 things How and Why.


Why dosent my code work??

Код:
public OnPlayerSpawn(playerid)
{
	if(PlayerDied[playerid] == true)
	{
		TogglePlayerSpectating(playerid, 1);// need to make some addons for this...
	}
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerDied[playerid] = true;
	return 1;
}
How do i detect if all players in one team died so it can exec a restart?
and
How do i make it automaticlly restart if theres 1 person on my server and they die?


Thats all i think :P

-Lorenc
Reply


Messages In This Thread
Hmm Somethings wrong or what? - by Lorenc_ - 23.06.2010, 09:19
Re: Hmm Somethings wrong or what? - by [HiC]TheKiller - 23.06.2010, 09:59
Re: Hmm Somethings wrong or what? - by Lorenc_ - 23.06.2010, 11:38
Re: Hmm Somethings wrong or what? - by [LSR]State_Trooper - 23.06.2010, 11:40
Re: Hmm Somethings wrong or what? - by Lorenc_ - 24.06.2010, 06:13
Re: Hmm Somethings wrong or what? - by [LSR]State_Trooper - 24.06.2010, 07:06

Forum Jump:


Users browsing this thread: 1 Guest(s)