Random Team Pick - 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: Random Team Pick (
/showthread.php?tid=279559)
Random Team Pick -
Shockey HD - 28.08.2011
I know many people ask somewhat of the same question, but this one might be a tad different.
Im making a little DM zone and i want it to randomly pick red team or green team. Pretty simple.
Except, How may i do this? Any Suggestions?
Re: Random Team Pick - Emmet_ - 28.08.2011
pawn Code:
new team = random(1);
switch(team)
{
case 0:
{
gTeam[playerid] = REDTEAM;
}
case 1:
{
gTeam[playerid] = GREENTEAM;
}
}
Re: Random Team Pick -
Shockey HD - 28.08.2011
It seems that Pawno didn't like
When ever i add that it doesn't seem to want to compile
[EDIT]
Sorry Fixed, had it in the wrong place.
Thank you.