Advertisement
noahfallon

Minigun Troll v1.0

Oct 4th, 2012
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.64 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #define FILTERSCRIPT
  4. #define COL_RED 0xD61F1FC8
  5. #define COL_SKYBLUE 0x0080FFC8
  6.  
  7. new pName[24];
  8. new string[128];
  9.  
  10. forward dumpsterdeletetimer();
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("NoahF's TROLL FS loaded..");
  15.     print("Don't be such a nigga.");
  16.     return 1;
  17. }
  18. public OnFilterScriptExit()
  19. {
  20.     print("NoahF's awesome MiniGun troll FS has unloaded.");
  21.     return 1;
  22. }
  23. public OnPlayerConnect(playerid)
  24. {
  25.     SendClientMessage(playerid, COL_SKYBLUE, "You can get a Minigun with 5000 ammo! Just type /minigun! :)");
  26.     return 1;
  27. }
  28.  
  29. CMD:minigun(playerid, params[])
  30. {
  31.     if(IsPlayerConnected(playerid))
  32.     {
  33.             SendClientMessage(playerid, COL_RED, "You have used the /minigun command, you will be given a Minigun with 5000 ammo!");
  34.             SendClientMessage(playerid, COL_RED, "There ya go, a minigun with 5k ammo! Enjoy!");
  35.             GivePlayerWeapon(playerid, 38, 1);
  36.             GameTextForPlayer(playerid, "~w~you just got fucking trolled!", 12000, 2);
  37.             GetPlayerName(playerid, pName, 24);
  38.             format(string, 128, "%s just got fucking trolled, what a retarded fuck!", pName);
  39.             GameTextForAll(string, 5000, 3);
  40.             SetPlayerSkin(playerid, 200);
  41.             SetPlayerHealth(playerid, 1.0);
  42.             CreateObject(910, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  43.             AttachObjectToPlayer(910, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  44.             PlayAudioStreamForPlayer(playerid, "http://soundcloud.com/bigred9921/u-mad-bro-song-by-teamheadkick/download");
  45.             SetPlayerDrunkLevel(playerid, 50000);
  46.             SetPlayerColor(playerid, 0xFF00FFC8);
  47.             SetTimer("dumpsterdeletetimer", 20000, true);
  48.             SetPlayerWeather(playerid, -666);
  49.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  50.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  51.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  52.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  53.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  54.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  55.             SendClientMessage(playerid, COL_RED, "NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB");
  56.             if(IsPlayerInAnyVehicle(playerid))
  57.             {
  58.                 new vID;
  59.                 new vID2;
  60.                 vID = GetPlayerVehicleID(playerid);
  61.                 vID2 = GetPlayerVehicleID(playerid);
  62.                 ChangeVehicleColor(vID2, 126, 126);
  63.                 SetVehicleHealth(vID, 0.0);
  64.                 RemovePlayerFromVehicle(playerid);
  65.             }
  66.     }
  67.     return 1;
  68. }
  69.  
  70. public dumpsterdeletetimer()
  71. {
  72.     DestroyObject(910);
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement