really simple question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: really simple question (
/showthread.php?tid=155648)
really simple question -
park4bmx - 19.06.2010
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;
Re: really simple question -
DJDhan - 19.06.2010
Код:
if(!strcmp(cmdtext,"/exitdm",true,7))
{
gTeam[playerid]=TEAM_GLOBAL;
//rest of your stuff
return 1;
}
Is that what you wanted?
Re: really simple question -
[XST]O_x - 19.06.2010
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.
Re: really simple question -
DJDhan - 19.06.2010
Well, he provided with the team name "TEAM_GLOBAL" so maybe he stores the players "not in any team" in that Team
Re: really simple question -
Naxix - 19.06.2010
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:
P.S i don't use gTeam, so i'm not sure if this is right, but i'm pretty sure it is.
Re: really simple question -
park4bmx - 19.06.2010
OK ill try am all :P thanks guys