Team Death Match
#3

Use OnPlayerShootPlayer for anti-teamattack
Use OnPlayerDeath for anti-teamKILL

like:
// OnPlayerDeath

if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
{
SetPlayerHealth(killerid, -15);
SendClientMessage(killerid, RED, "You've been killed for killing a team mate! ");
SendClientMessage(playerid, RED, "You've been teamkilled. Position restored ");
}

do the rest code GetPlayerPos, SetPlayerpos and weapons and stuff.
Reply


Messages In This Thread
Team Death Match - by Patrikas - 01.04.2010, 12:21
Re: Team Death Match - by Carlton - 01.04.2010, 12:23
Re: Team Death Match - by Gangs_Rocks - 29.05.2012, 11:38
Re: Team Death Match - by davve95 - 29.05.2012, 11:44
Re: Team Death Match - by Sufyan - 29.05.2012, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)