24.07.2012, 09:30
PHP код:
#define TEAM_ME 1
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][TEAM_ME]);
{
new targetid;
SetPlayerHealth(targetid,100);
}
else
{
SendClientMessage(playerid,0xE00404,"You are not a medic");
}
return 1;
}
return 0;
}