10.04.2010, 16:29
pawn Код:
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;
}
}