Help: CreateExplosion
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/Explosion_List
Reply
#3

Thanks
Reply
#4

Which one is the best ?
Reply
#5

You can test yourself and find out. Fun!
Reply
#6

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
You can test yourself and find out. Fun!
Ok, I will...
Reply
#7

If the player should die, try a fake explosion one and apply SetPlayerHealth on the player.
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)