Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////
- /* */
- /* FireHell filterscript by iRage */
- /* www.zGaming.org */
- /* Feel free to use this filterscript for any purpose. */
- /* */
- /////////////////////////////////////////////////////////
- #include <a_samp>
- #include <zcmd>
- #include <sscanf>
- public OnFilterScriptInit()
- {
- print(" ");print(" ");print(" ");print(" ");
- print("=---------------------------------");
- print("| FireHell filterscript by iRage |");
- print("| www.zGaming.org |");
- print("----------------------------------");
- return 1;
- }
- CMD:firehell(playerid, params[])
- {
- new amount, string[128], Float:Pos[4];
- if(sscanf(params, "i", amount)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /firehell [explosions]");
- if(amount < 1) return SendClientMessage(playerid, 0xFFFFFFFF, "Amount of explosions can't be below 1.");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), Pos[3]);
- else GetPlayerFacingAngle(playerid, Pos[3]);
- for(new i=1; i<amount+1; i++)
- {
- Pos[0] = Pos[0] + 15*floatcos(90+Pos[3], degrees);
- Pos[1] = Pos[1]+ 15*floatsin(90-Pos[3], degrees);
- CreateExplosion(Pos[0], Pos[1], Pos[2], 0, 5.0);
- }
- format(string, sizeof(string), "You have created %d explosions.", amount);
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment