02.02.2013, 20:43
Team_Army
Team_Cop
Team_Cop
public OnPlayerDeath(playerid, killerid, reason)
{
if((killerid != INVALID_PLAYER_ID) && (GetPlayerTeam(killerid) == GetPlayerTeam(playerid)))
{
SendClientMessage(playerid, -1, "You have been kicked for killing your own teammate.");
return Kick(playerid);
}
return 1;
}
if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI) { format(string, 120, "%s was killed by %s (%s)", PlayerInfo(playerid), PlayerInfo(killerid), aWeaponNames[reason]); print(string); return 1; }