12.03.2010, 21:01
try with this one
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/test", true) == 0)
{
if(gTeam[playerid] == TEAM_ARMY)
{
SendPlayerFormattedText(playerid,"You are in army.",0);
}
else
{
SendPlayerFormattedText(playerid,"You are not in the army",0);
}
return 1;
}
return 0;
}