Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Air Strike FS by Kain1297
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- forward air();
- new taimr;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Air strike FS by kain1297 (aka: [FAT] Kenneth, LST Commander");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- new smok;
- new Float:q, Float:w, Float:e;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new Float:x, Float:y, Float:z;
- if (strcmp("/support", cmdtext, true, 10) == 0)
- {
- GetPlayerPos(playerid, x,y,z);
- smok = CreateObject(18728, x, y, z-2.60, 0.00, 0.00, 0.00);
- GetObjectPos(smok,q,w,e);
- SetTimer("air",7000,false);
- GameTextForPlayer(playerid,"~g~Air strike inbound!",2000,5);
- PlayerPlaySound(playerid, 33889,x,y,z);
- return 1;
- }
- return 0;
- }
- public air()
- {
- for(new playerid; playerid<GetMaxPlayers(); playerid++)
- PlayerPlaySound(playerid, 42205,q,w,e);
- taimr = SetTimer("air2",300,true);
- SetTimer("air3",2000,false);
- }
- forward air2();
- public air2()
- {
- new ran = random(5);
- if(ran == 3)
- {
- CreateExplosion(q,w,e,7,50.0);
- }
- if(ran == 2)
- {
- CreateExplosion(q,w+10.0,e,7,50.0);
- }
- if(ran == 1)
- {
- CreateExplosion(q,w+15.0,e,7,50.0);
- }
- if(ran == 4)
- {
- CreateExplosion(q+20,w+20.0,e,7,50.0);
- }
- }
- forward air3();
- public air3()
- {
- KillTimer(taimr);
- DestroyObject(smok);
- }
Advertisement
Add Comment
Please, Sign In to add comment