Help: CreateExplosion - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help: CreateExplosion (
/showthread.php?tid=429681)
Help: CreateExplosion -
Areax - 10.04.2013
Hello!
I have one problem with my /nuke command...
How can I make an explosion bigger, I mean when I type /nuke 0 ingame is player still alive...But I want that player should die.
CODE:
PHP код:
CMD:nuke(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < 3)return SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this command!");
new string[128], ID, Float:x, Float:y, Float:z;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_ORANGE, "Usage: /nuke [playerid/name]");
else if(!IsPlayerConnected(ID)) SendClientMessage(playerid, COLOR_RED, "ERROR: This player is not connected.");
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(ID, pName, MAX_PLAYER_NAME);
GetPlayerPos(ID, x, y, z);
CreateExplosion(x, y, z, 10, 10.0);
format(string,sizeof(string), "[System]: You have exploded %s.", pName);
SendClientMessage(playerid, COLOR_PURPLE, string);
}
return 1;
}
Thank you for your help
Re: Help: CreateExplosion -
SilverKiller - 10.04.2013
https://sampwiki.blast.hk/wiki/Explosion_List
Re: Help: CreateExplosion -
Areax - 10.04.2013
Thanks
Re: Help: CreateExplosion -
Areax - 10.04.2013
Which one is the best ?
Re: Help: CreateExplosion -
HurtLocker - 10.04.2013
You can test yourself and find out. Fun!
Re: Help: CreateExplosion -
Areax - 10.04.2013
Quote:
Originally Posted by HurtLocker
You can test yourself and find out. Fun!
|
Ok, I will...
AW: Help: CreateExplosion -
BigETI - 10.04.2013
If the player should die, try a fake explosion one and apply SetPlayerHealth on the player.
Re: AW: Help: CreateExplosion -
Areax - 10.04.2013
Quote:
Originally Posted by BigETI
If the player should die, try a fake explosion one and apply SetPlayerHealth on the player.
|
Yea, I did this