13.11.2011, 09:21
Hello! How to make /burn id?
It looks Like in GTA SA, When Player Burns, then lower HP to 0?!
It looks Like in GTA SA, When Player Burns, then lower HP to 0?!
COMMAND:burn(playerid, params[])
{
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, grey,"USAGE: /burn [playerid / Partofname]");
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerName(ID,pname,sizeof(pname));
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xFF0000FF, "That user is not connected.");
format(str, sizeof(str),"You had burned %s!",pname);
SendClientMessage(playerid, 0xFF9900AA,str);
format(str, sizeof(str),"Administrator %s has burned you!",Nam);
SendClientMessage(ID, 0xFF9900AA,str);
new Float:burnx, Float:burny, Float:burnz;
GetPlayerPos(ID,burnx,burny,burnz);
CreateExplosion(burnx,burny,burnz,0,10.0);
}
return 1;
}