How do i give penalty for teamkilling?
#1

i want to make it so on my server if you kill your own team they get a penalty i have these teams

Код:
(gTeam[playerid] == TEAM_GROVE) and (gTeam[playerid] == TEAM_BALLA)
How do i make it so if grove kills grove they lose $5,000 and they're hp goes down to 1? thankyou!!!

IT WILL FEEL GOOD TO GET REVENGE ON THOSE WHO TEAMKILL!

~~[Drift]~~
Reply
#2

what i did on my server is:

pawn Код:
//on player death

if(gTeam[killerid] == gTeam[playerid]) // if the killerid`s team equals the team of the person who got killed
{
// teamkill!
giveplayermoney(killerid,-5000);
setplayerhealth(killerid,1.0);
... etc.....
}
Reply
#3

oohh nicest idea ever! thanks a lot man! =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)