[HELP] balanc tйam
#1

hi all
i'm gonna explain my problem :
i have a game mod and i want to put a team balance : i mean i want to put something like
Quote:

public OnPlayerConnect(playerid)

if player id is 2,5,8,11,15,18

SetPlayerTeam(playerid, 1);

else

SetPlayerTeam(playerid, 2);

can you help me
Reply
#2

pawn Код:
if (playerid == 2 || playerid == 5 || playerid == 8 || playerid == 11 || playerid == 15 || playerid == 18 )
{
        SetPlayerTeam (playerid, 1);
}
else
{
        SetPlayerTeam (playerid, 2);
}
Reply
#3

yйss thanks a lot man
Reply
#4

amine hi
Reply
#5

pawn Код:
switch(playerid)
{
    case 2,5,8,11,15,18:
    {
        SetPlayerTeam(playerid, 1);
    }
    default:
    {
        SetPlayerTeam(playerid, 2);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)