really simple question
#1

really simple question
_________________________________________________
How can i RESET a team basically what i mean is when the player types /EXITDM he/she LEAVES THAT TEAM
this is the CODE for when i set the TEAM
pawn Код:
gTeam[playerid] = TEAM_GLOBAL;
Reply
#2

Код:
if(!strcmp(cmdtext,"/exitdm",true,7))
{
  gTeam[playerid]=TEAM_GLOBAL;
  //rest of your stuff
  return 1;
}
Is that what you wanted?
Reply
#3

Quote:
Originally Posted by DJDhan
Код:
if(!strcmp(cmdtext,"/exitdm",true,7))
{
  gTeam[playerid]=TEAM_GLOBAL;
  //rest of your stuff
  return 1;
}
Is that what you wanted?
I think he meant that he wants a code that will remove the player from team when he types /exitdm.
Reply
#4

Well, he provided with the team name "TEAM_GLOBAL" so maybe he stores the players "not in any team" in that Team
Reply
#5

No he said "TEAM_GLOBAL" is the one he uses when he set their team, i'm not sure, but can you set gTeam to 0? like
Код:
gTeam[playerid] = 0;
Else just make a new team like:
pawn Код:
#define TEAM_CIVIL
P.S i don't use gTeam, so i'm not sure if this is right, but i'm pretty sure it is.
Reply
#6

OK ill try am all :P thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)