07.06.2009, 19:15
Yeah,we can answer you
1. If you want different classid just use if(classid == ID || classid == ID and just add || classid == ID and then gTeam[playerid] = TEAM_NAME;
2. If you don`t want use 'else' then use 'else if' else if(classid == ID (Ballas in this case) || classid == ID and then gTeam[playerid] = TEAM_NAME;
3. Commands,hmm,make like this
if(strcmp(cmd,"/command",true)==0)
{
if(gTeam[playerid] == TEAM_NAME)
{
// effect
}
return 1;
}
1. If you want different classid just use if(classid == ID || classid == ID and just add || classid == ID and then gTeam[playerid] = TEAM_NAME;
2. If you don`t want use 'else' then use 'else if' else if(classid == ID (Ballas in this case) || classid == ID and then gTeam[playerid] = TEAM_NAME;
3. Commands,hmm,make like this
if(strcmp(cmd,"/command",true)==0)
{
if(gTeam[playerid] == TEAM_NAME)
{
// effect
}
return 1;
}