28.06.2009, 19:56
Try this:
pawn Код:
if(strcmp("/heal", cmdtext, true) == 0)
{
if(gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_YELLOW, "you have cured cured (id: )");
return 1;
}
else if(gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal people");
return 1;
}
else if(gTeam[playerid] == TEAM_CIVILIAN)
{
SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal players");
return 1;
}
}