explode
#4

PHP код:
COMMAND:explode(playeridparams[])
{
        if(
pData[playerid][Admin] >= 3)
        {
        new 
bombidtype;
        if(
sscanf(params"ii"bombid,type)) return SendClientMessage(playeridCOLOR_RED"USAGE: /explode [name/id] [type]");
        if(!
IsPlayerConnected(bombid)) return SendClientMessage(playeridCOLOR_RED"Player not found.");
        if(
type || type 13) return SendClientMessage(playerid,COLOR_RED,"Type of explosin [1 to 13]");
        else
        {
            new 
Float:x,Float:y,Float:z,str[280],ircMsg[280];
            
GetPlayerPos(bombid,x,y,z);
            
CreateExplosion(x,y,z,type,5);
            
format(str,sizeof(str), "You have exploded %s (ID: %d) [Type: %d]",GetName(bombid),bombidtype);
            
SendClientMessage(playerid,COLOR_GREEN,str);
            
format(ircMsgsizeof(ircMsg), "1,8 Admin %s (ID: %d) exploded %s (ID: %d) with explosin (Type %d)"GetName(playerid), playeridGetName(bombid),bombidtype);
            
IRC_GroupSay(groupIDIRC_CHANNELircMsg);
        }
    
        return 
1;
        }
        else
        {
           return 
ShowMessage(playeridCOLOR_YELLOW13);
        }

Try now, untested though. Also i maybe a lil drunk so ill try and help the best i can
Reply


Messages In This Thread
explode - by Loinal - 24.09.2017, 21:05
Re: explode - by AaronFarley - 24.09.2017, 21:23
Re: explode - by Loinal - 24.09.2017, 21:41
Re: explode - by AaronFarley - 24.09.2017, 22:16
Re: explode - by AfiqIqbal - 25.09.2017, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)