Random Team Pick
#1

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?
Reply
#2

pawn Code:
new team = random(1);
switch(team)
{
    case 0:
    {
        gTeam[playerid] = REDTEAM;
    }
    case 1:
    {
        gTeam[playerid] = GREENTEAM;
    }
}
Reply
#3

It seems that Pawno didn't like

pawn Code:
new team = random(1);
When ever i add that it doesn't seem to want to compile

[EDIT]

Sorry Fixed, had it in the wrong place.

Thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)