Anti team kill with gteam?
#2

i dont know anything about your gamemode (how teams are stored)
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);
    }
}
this topic should be in scripting discussion
Reply


Messages In This Thread
Anti team kill with gteam? - by Face9000 - 14.12.2010, 15:00
Re: Anti team kill with gteam? - by veyron - 14.12.2010, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)