SA-MP Forums Archive
help cmd team - 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 cmd team (/showthread.php?tid=663680)



help cmd team - nbx2000 - 08.02.2019

hello can you help me as I can make each team have their color and skin and sea balanced the amount of equipment when they enter in ceathmach

#define ATTACK 100
#define DEFENCE 101


new SetTeam[][2] =
{
{SetPlayerTeam, 100},
{SetPlayerTeam, 101}
};

Then in a command
example
CMDM1
new teamrandom = random(sizeof(SetTeamm));
SetPlayerTeam(i, SetTeam[SetTeam][100], SetTeam[SetTeam][101]);
RETURN :
)


Re: help cmd team - Proxus - 08.02.2019

Use these wiki pages:
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
https://sampwiki.blast.hk/wiki/SetPlayerSkin

You could use defines like
#define ATTACKSKIN 0
#define DEFENCESKIN 0
#define ATTACKCOLOUR 0x33CCFFAA
#define DEFENCECOLOUR 0x33CCFFAA

Colour codes are here: https://sampforum.blast.hk/showthread.php?tid=82039


Re: help cmd team - nbx2000 - 09.02.2019

I did not understand