Help..
#1

Код:
dcmd_explode(playerid,params[])
{
	new tmp2[300],tmp[300], Index;
  tmp = strtok(params,Index), tmp2 = strtok(params,Index);
	new id = strval(tmp);
	if(IsPlayerAdminLevel(playerid,3))
	{
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"That Player Is Not Connected");
	if(Stats[id][ALvl] >= Stats[playerid][ALvl]) return SendClientMessage(playerid,COLOR_RED,"You cant explode this admin.");
	new string[256],string2[256], pname[24], pname2[24],Float:health;
	GetPlayerName(playerid, pname, 24);
	GetPlayerName(id, pname2, 24);
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(id,X,Y,Z);
	CreateExplosion(X,Y,Z,2,1);
	GetPlayerHealth(id,health);
	format(string, sizeof(string), "You Have Been Exploded By Admin %s (%d Health Left)",pname,	floatround(health));
	format(string2, sizeof(string2), "%s Has Been Exploded by Admin %s (%d Health Left)",pname2,pname,floatround(health));
	SendClientMessage(id,COLOR_RED,string);
	SendClientMessageToAll(COLOR_RED,string2);
	}
	else
	{
	SendClientMessage(playerid,COLOR_RED,"You must be level 3 admin to do this.");
	}

	return 1;
}
when the cmd happens, the health is still 100... it doesnt show the health after the eplosion.
Reply
#2

are u sure that explosion hurts?
Reply
#3

Quote:
Originally Posted by BiG_Sm0k3
are u sure that explosion hurts?
lol yes, it hurts, it's made to hurt.
Reply
#4

also , the radius do you think is ok? i should use 10 but the script is ok so i dunno
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)