07.07.2009, 00:56
Hey i have a doubt because im including my Clan war gm into my other gamemode
and instead of using some things im making cmdґs that make the same function
and my problem is:
you make /clanwar 1
and you are now a member of team 1
this is ok
but when i want to do /clanwar exit
i would like to make that the person that do this and exists the clan war quit the team so cannot read team msgs
i thought this
if(strcmp(cmdtext, "/enter", true)==0)
{
gTeam[playerid] = team1;
return 1;
}
if(strcmp(cmdtext, "/exit", true)==0)
{
gTeam[playerid] = 0;
return 1;
}
is this ok?
and instead of using some things im making cmdґs that make the same function
and my problem is:
you make /clanwar 1
and you are now a member of team 1
this is ok
but when i want to do /clanwar exit
i would like to make that the person that do this and exists the clan war quit the team so cannot read team msgs
i thought this
if(strcmp(cmdtext, "/enter", true)==0)
{
gTeam[playerid] = team1;
return 1;
}
if(strcmp(cmdtext, "/exit", true)==0)
{
gTeam[playerid] = 0;
return 1;
}
is this ok?