12.08.2017, 07:28
Hello, I have another problem... I don't know how to set directly to the maximum health and armour.
When I type /health and /armour, it don't set me the max health and armour, but it requires a number.
Ex: /health 100
So, is it possible set your health and armour directly to the maximum typing /health and /armour?
This is the code:
When I type /health and /armour, it don't set me the max health and armour, but it requires a number.
Ex: /health 100
So, is it possible set your health and armour directly to the maximum typing /health and /armour?
This is the code:
Quote:
COMMAND:armour(playerid, params[]) { new id; if (sscanf(params, "i", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /armour <armour>"); SetPlayerArmour(playerid, id); // Do something return 1; } COMMAND:health(playerid, params[]) { new id; if (sscanf(params, "i", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /health <health>"); SetPlayerHealth(playerid, id); // Do something return 1; } |