Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

explode

$
0
0
PHP Code:

COMMAND:explode(playeridparams[])
{
        if(
pData[playerid][Admin] >= 3)
        {
        new 
bombidtype;
        if(
sscanf(params"uu"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);
        }


This command is not working every time i try to type the type of explosin it send me that only from 1 to 13 is allowed to be used

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>