20.10.2012, 19:04
Hey everyone
could someone make a /changeteam command that forces you to team selection?
Thanks all!
could someone make a /changeteam command that forces you to team selection?
Thanks all!
//if the variable is gTeam for example (which defines the player on which troop)
CMD:changeteam(playerid, params[])
{
if(gTeam[playerid] == 1 /*TEAM 1*/)
{
//YOUR CODE
gTeam[playerid] = 2; /*TEAM 2*/
}
else if(gTeam[playerid] == 2 /*TEAM 1*/)
{
//YOUR CODE
gTeam[playerid] = 1; /*TEAM 2*/
}
//and so on if you want
return 1;
}