15.04.2012, 07:17
Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
new health, otherid;
public OnFilterScriptInit() return 1;
CMD:sethealth(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xff0000FF, "You are not an admin.");
if(sscanf(params,"ui", otherid, health)) return SendClientMessage(playerid, 0xffffffFF, "Correct usage: /sethealth <playerid> <0-100>");
if(!IsPlayerConnected(otherid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server");
SetPlayerHealth(playerid, health);
return 1;
}

