28.12.2012, 09:31
Uh, to add commands, search for OnPlayerCommandText.
You replace /mycommand with the name of the command you want to make. And the rest? Well you'll have to have SOME knowledge of pawno scripting.
Simple /heal command:
You replace /mycommand with the name of the command you want to make. And the rest? Well you'll have to have SOME knowledge of pawno scripting.
Simple /heal command:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 100) SendClientMessage(playerid, COLOR_YELLOW, "You have been healed); return 1; }