14.12.2010, 15:33
i dont know anything about your gamemode (how teams are stored)
this topic should be in scripting discussion
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(gteam[killerid] == gteam[playerid] && killerid != INVALID_PLAYER_ID)
{
SendClientMessage(killerid,COLOR_RED,"You killed your teammate!");
// code here , example SetPlayerHealth(killerid,0);
}
}