cmd not working
#3

Код:
#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;
}
Reply


Messages In This Thread
cmd not working - by Matthewaj - 15.04.2012, 05:35
Re: cmd not working - by Nuke547 - 15.04.2012, 05:40
Re: cmd not working - by NeTuddMeg - 15.04.2012, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)