10.04.2010, 16:22
what's wrong with this commands? http://pastebin.com/YUKHMAcg but when i type /changeballas no effect
if(strcmp(cmdtext, "/changeaztecas", true) == 0)
{
if(gTeam[playerid] == TEAM_GROVE || gTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_COP)
{
SetPlayerTeam(playerid, 5);
return 1;
}
}
if(strcmp(cmdtext, "/changecops", true) == 0)
{
if(gTeam[playerid] == TEAM_GROVE || gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerTeam(playerid, 3);
return 1;
}
}
if(strcmp(cmdtext, "/changeballas", true) == 0)
{
if(gTeam[playerid] == TEAM_GROVE || gTeam[playerid] == TEAM_COP)
{
SetPlayerTeam(playerid, 2);
return 1;
}
}
if(strcmp(cmdtext, "/changeitalian", true) == 0)
{
if(gTeam[playerid] == TEAM_GROVE || gTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_COP)
{
SetPlayerTeam(playerid, 4);
return 1;
}
}
if(strcmp(cmdtext, "/changegrove", true) == 0)
{
if(gTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_COP)
{
SetPlayerTeam(playerid, 1);
return 1;
}
}
Originally Posted by adytzu32
and what function should i use?
|