SA-MP Forums Archive
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(playeridparams[])
{
    if(
gPlayerInfo[playerid][PLAYER_LEVEL] < 3)return SendClientMessage(playeridCOLOR_RED"You are not allowed to use this command!");
    new 
string[128], IDFloat:xFloat:yFloat:z;
    if(
sscanf(params"u"ID)) SendClientMessage(playeridCOLOR_ORANGE"Usage: /nuke [playerid/name]");
    else if(!
IsPlayerConnected(ID)) SendClientMessage(playeridCOLOR_RED"ERROR: This player is not connected.");
    else
    {
        new 
pName[MAX_PLAYER_NAME];
        
GetPlayerName(IDpNameMAX_PLAYER_NAME);
        
GetPlayerPos(IDxyz);
        
CreateExplosion(xyz1010.0);
        
format(string,sizeof(string), "[System]: You have exploded %s."pName);
        
SendClientMessage(playeridCOLOR_PURPLEstring);
    }
    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