gTeam (+REP)
#6

So the server is going pretty well but when it comes to creating a team kill detector, it creates a problem, anyone mind telling me how to detect teamkilling in this case?

Thanks, I will +REP to someone who gives a valid answer.

Код:
//under OnPlayerDeath
		if GetPlayerTeam(playerid) == GetPlayerTeam(killerid) *then
		{
		ResetPlayerWeapons(killerid);
		SendClientMessage(killerid, COLOR_NEWS, "Your weapons have been taken away due to teamkilling.");
		}
		}
 	    return 1;
}
It returns this error:
Код:
(1018) : error 010: invalid function or declaration
Reply


Messages In This Thread
gTeam (+REP) - by Barrack - 27.05.2012, 07:53
Re: gTeam (+REP) - by Gangs_Rocks - 27.05.2012, 07:59
Re: gTeam (+REP) - by Barrack - 27.05.2012, 08:04
Re: gTeam (+REP) - by Gangs_Rocks - 27.05.2012, 08:06
Re: gTeam (+REP) - by MP2 - 27.05.2012, 08:10
Re: gTeam (+REP) - by Barrack - 31.05.2012, 18:49
Re: gTeam (+REP) - by MadeMan - 31.05.2012, 19:30
Re: gTeam (+REP) - by Barrack - 31.05.2012, 19:41
Re: gTeam (+REP) - by MadeMan - 31.05.2012, 19:53
Re: gTeam (+REP) - by Barrack - 31.05.2012, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)