SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/02/2014, 10:44 PM   #1
UserName31
Huge Clucker
 
UserName31's Avatar
 
Join Date: Jul 2011
Posts: 323
Reputation: 4
Default how make anti team killing?

hellow how i make when same team try to kill each other they cant? like when team grove shoot at team grove they will not loose health?
__________________
Learning....
UserName31 is offline   Reply With Quote
Old 12/02/2014, 11:06 PM   #2
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: how make anti team killing?

http://wiki.sa-mp.com/wiki/SetPlayerTeam
http://forum.sa-mp.com/showthread.php?t=273529

You could of searched and found what you wanted instead of waiting minutes for an answer.
[KHK]Khalid is offline   Reply With Quote
Old 13/02/2014, 04:19 AM   #3
GGW
Big Clucker
 
GGW's Avatar
 
Join Date: Apr 2013
Location: UAE
Posts: 160
Reputation: 13
Default Re: how make anti team killing?

you have to set the player team

Quote:
SetPlayerTeam(playerid,teamid);
like this ^^

Quote:
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,0x55FF00FF);
SetPlayerTeam(playerid,1);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid,0xA000FFFF);
SetPlayerTeam(playerid,2);
}
thats a example by using gteam

i hope it helped ^^
GGW is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make enable/disable Anti Team Kill Broker Scripting Help 2 08/03/2013 04:06 AM
Need Anti Team Killing korzk7 Scripting Help 4 11/07/2012 06:00 AM
needing Anti-Team Killing Maftaca Scripting Help 8 04/02/2012 12:22 AM
No team killing cruising Help Archive 5 26/08/2010 09:08 PM


All times are GMT. The time now is 07:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.