Help Me Please... (/setteam [Color Id]) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me Please... (/setteam [Color Id]) (
/showthread.php?tid=638620)
Help Me Please... (/setteam [Color Id]) -
Filbert - 03.08.2017
Guys, how i can make /setteam [color id] command?
And when 2 or more players have same color id, they can't shoot each other.
Please help me, God Bless.
Re: Help Me Please... (/setteam [Color Id]) -
grymtn - 03.08.2017
you can put variables like
Код:
new playerteam[MAX_PLAYERS]
and i believe you can make changes in onplayerweaponshot like
Код:
if(playerteam[playershot]==playerteam[playerid]) return 1;
//this will prevent the damage if their both teams are same like
you can search for there and dont forget copying and pasting never teaches anything try to learn
Re: Help Me Please... (/setteam [Color Id]) -
Filbert - 03.08.2017
I can't :c