./explode problem
#4

Maybe it works.
Код:
COMMAND:explode(playerid, params[])
{
        new bombid;
   
        if(sscanf(params, "u", bombid)) return SendClientMessage(playerid, COLOR_ERROR, "[USAGE]: /explode [name/id]");
        if(!IsPlayerConnected(bombid)) return SendClientMessage(playerid, COLOR_ERROR, "Player not found.");

        if (!PlayerInfo[playerid][pAdminLevel] > 0 || !IsPlayerAdmin(playerid)) return 			SendClientMessage(playerid,COLOR_ERROR,"Unknown Command! Type /cmds To See All Available Commands");
        {
            new Float:x,Float:y,Float:z;
            GetPlayerPos(bombid,x,y,z);
            CreateExplosion(x,y,z,6,5);
            CreateExplosion(x+2.5,y,z,6,2.5);
            CreateExplosion(x,y+2.5,z,6,2.5);
            CreateExplosion(x,y,z+2.5,6,2.5);
            SetPlayerHealth(bombid, 0.0);
			GMT(bombid, "~w~An Admin ~r~Exploded ~n~~w~You",2000,3);
        return 1;
}
Reply


Messages In This Thread
./explode problem - by Ritzy2K - 28.03.2015, 15:46
Re : ./explode problem - by iFiras - 28.03.2015, 15:47
Re: ./explode problem - by Ritzy2K - 28.03.2015, 16:00
Re: ./explode problem - by Karan007 - 28.03.2015, 16:03
Re: ./explode problem - by Loot - 28.03.2015, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)