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;
}
|
Originally Posted by BiG_Sm0k3
are u sure that explosion hurts?
|