16.10.2010, 23:38
Okay have a look at this:
Why return? It'll stop the execution of code in OnPlayerCommandText, therefore it won't say Unknown Command unless SendClientMessage returns 0, which it won't.
pawn Код:
if(cTeam[playerid] == TEAM_MEDIC) // Useless line...remove it
if(cTeam[playerid] != TEAM_MEDIC) return SendClientMessage(playerid,COLOR_WHITE,"You are not a medic!");
else
{ // rest of code