Need system
#1

Hi scripters i need team anti kill system someone please help me.
Reply
#2

http://forum.sa-mp.com/showthread.ph...light=antikill
this?
Reply
#3

If players are on the same team (SetPlayerTeam) they cannot kill each other. If you use gTeam[playerid]; you can make it like this

pawn Код:
if(gTeam[killerid] == gTeam[playerid])
{
    SendClientMessage(playerid, COLOR, "No teamkilling!");
}
Reply
#4

This is good script?

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(Gang[playerid] == Gang[playerid])
{

}
}
return 1;
}
Reply
#5

?
Reply
#6

Use OnPlayerShootPlayer by Wups (Thread)

Code:

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
  if(gTeam[shooter] == gTeam[target])
  {
    new Float:h;
    GetPlayerHealth(target, h);
    SetPlayerHealth(target, h+damage);
    SendClientMessage(shooter, 0xFF0000FF, "Don't shoot your team mates!");
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)