10.09.2017, 17:28
Quote:
The upper guy is still wrong by the way. Try this one
Код:
CMD:healup(playerid, params[]) { new victim,Float:health; if(PlayerInfo[playerid][pFaction] != 3) return SCM(playerid, COLOR_LIGHTRED, "You are not a police officer."); if(sscanf(params, "u", victim)) return SendClientMessage(playerid, COLOR_GREY, "/healup (id)"); if(victim == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_LIGHTRED, "That player is not connected."); if (GetDistanceBetweenPlayers(playerid,victim) < 5) { GetPlayerHealth(victim, health); if (health < 40) SetPlayerHealth(victim, 60); } else return SCM(playerid, COLOR_LIGHTRED, "You're not close to that player."); return 1; } |