11.08.2011, 20:17
Put the defines above OnPlayerCommandText, aka - on top of your script.
Darnell, there's something wrong with '}' in your fix. Try this:
Darnell, there's something wrong with '}' in your fix. Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/myteam", cmdtext, true, 7))
{
if (pTeam[playerid] == team_Army)
{
SendClientMessage(playerid,COLOR_GREEN, "You are a bad guy");
}
else if (pTeam[playerid] == team_Fbi)
{
SendClientMessage(playerid,COLOR_GREEN, "You are a good guy");
}
return 1;
}
return 0;
}