Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ╭╮╱╭╮╱╱╱╱╱╭╮╱╭━━━╮╭╮
- ┃┃╱┃┃╱╱╱╱╱┃┃╱┃╭━╮┣╯╰╮
- ┃╰━╯┣━━┳┳━╯┣╮┃╰━━╋╮╭╋━━┳━╮╭━━╮
- ┃╭━╮┃┃━╋┫╭╮┣┫╰━━╮┃┃┃┃╭╮┃╭╮┫┃━┫
- ┃┃╱┃┃┃━┫┃╰╯┃┃┃╰━╯┃┃╰┫╰╯┃┃┃┃┃━┫
- ╰╯╱╰┻━━┻┻━━┻╯╰━━━╯╰━┻━━┻╯╰┻━━╯
- ╭━━━╮╱╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭╮╭╮╭╮
- ╰╮╭╮┃╱╱╱╱╭┳╯╰╮╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱┃┣╯╰┫┃
- ╱┃┃┃┣━━┳━┫┣╮╭╯╭━┳━━┳╮╭┳━━┳╮╭┳━━╮╭━━┳━┳━━┳━╯┣╮╭┫┃
- ╱┃┃┃┃╭╮┃╭╋┫┃┃╱┃╭┫┃━┫╰╯┃╭╮┃╰╯┃┃━┫┃╭━┫╭┫┃━┫╭╮┣┫┃╰╯
- ╭╯╰╯┃╰╯┃┃┃┃┃╰╮┃┃┃┃━┫┃┃┃╰╯┣╮╭┫┃━┫┃╰━┫┃┃┃━┫╰╯┃┃╰┳╮
- ╰━━━┻━━┻╯╰╯╰━╯╰╯╰━━┻┻┻┻━━╯╰╯╰━━╯╰━━┻╯╰━━┻━━┻┻━┻╯
- // Usage: /heidifire //
- #define FILTERSCRIPT
- #include <a_samp>
- new firework;
- public OnFilterScriptInit()
- {
- print("Firework script by Heidi Stone loaded.");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/heidifire", cmdtext, true, 9) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(!IsObjectMoving(firework))
- {
- new Float:pX, Float:pY, Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- firework = CreateObject(2918, pX, pY, pZ, 0.0, 0.0, 100.0);
- MoveObject(firework, pX, pY + 16, pZ + 50, 25.0);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FF0000}** Please wait until your other firework is done, d00d **");
- }
- }
- else
- {
- SendClientMessage(playerid, -1, "{FF0000}** You can't launch firework from your car, nigga. Like srsly?**");
- }
- return 1;
- }
- return 0;
- }
- public OnObjectMoved(objectid)
- {
- if(objectid == firework)
- {
- new Float:obX, Float:obY, Float:obZ;
- GetObjectPos(objectid, obX, obY, obZ);
- DestroyObject(firework);
- CreateExplosion(obX, obY, obZ, 0, 15.0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement