[Include] simple Exploding functions
#1

simple Exploding functions

Something that I made in a few minutes (I'm very Bored).
This allows you to create explode on player/vehicle/object.

Video
Soon!

ScreenShots







Natives
Код:
native CreatePlayerExplosion(playerid, type, Float:radius, Float:offsetx = 0.0, Float:offsety = 0.0, Float:offsetz = 0.0);
native CreateVehicleExplosion(vehicleid, type, Float:radius, Float:offsetx = 0.0, Float:offsety = 0.0, Float:offsetz = 0.0);
native CreateObjectExplosion(objectid, type, Float:radius, Float:offsetx = 0.0, Float:offsety = 0.0, Float:offsetz = 0.0);
Usage
Here some test commands that I made:
Код:
if(!strcmp(cmd, "/ExplodePlayer", true))
	{
	    new reciveid, Float:zOffset;
	    if(sscanf(params, "uf", reciveid, zOffset)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /ExplodePlayer [playerid] [z]");

	    return CreatePlayerExplosion(reciveid, 7, 5.0, 0.0, 0.0, zOffset);
	}
    if(!strcmp(cmd, "/ExplodeVehicle", true))
	{
	    new vehicleid, Float:zOffset;
	    if(sscanf(params, "df", vehicleid, zOffset)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /ExplodeVehicle [vehicle] [z]");

	    return CreateVehicleExplosion(vehicleid, 7, 5.0, 0.0, 0.0, zOffset);
	}
    if(!strcmp(cmd, "/ExplodeObject", true))
	{
	    new objectid, Float:zOffset;
	    if(sscanf(params, "df", objectid, zOffset)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /ExplodeObject [object] [z]");

	    return CreateObjectExplosion(objectid, 7, 5.0, 0.0, 0.0, zOffset);
	}
Credits
RaFaeL(Me) - Making the include

Download
Normal Objects: http://pastebin.com/xNijwkfz
Streamer: http://pastebin.com/7eBvRFGD


Enjoy!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)