Advertisement
Guest User

**DM Pack - 3 in One - From Scratch**

a guest
May 1st, 2013
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.72 KB | None | 0 0
  1. // DM Pack - 3 in One By SimpalK
  2. // Created From Scratch
  3. // Thanks for Using :)
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #define COLOR_RED 0xAA3333AA
  9. #define COLOR_YELLOW 0xFFFF00AA
  10.  
  11. #define ranks 1
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print("\n--------------------------------------");
  16.     print(" DM Pack - 3 in One  By SimpalK Loaded  ");
  17.     print("--------------------------------------\n");
  18.     return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.     print("\n--------------------------------------");
  24.     print(" DM Pack - 3 in One  By SimpalK Unloaded");
  25.     print("--------------------------------------\n");
  26.     return 1;
  27. }
  28.  
  29. /////////////////////////////////////////////////////////////////////////Rank System
  30. CMD:myrank(playerid, params[])
  31. {
  32.     if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 10)
  33.     {
  34.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Shooter.");
  35.     }
  36.     if (GetPlayerScore(playerid) >= 10 && GetPlayerScore(playerid) < 20)
  37.     {
  38.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Newbie Shooter.");
  39.     }
  40.     if (GetPlayerScore(playerid) >= 20 && GetPlayerScore(playerid) < 30)
  41.     {
  42.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Trainee Shooter.");
  43.     }
  44.     if (GetPlayerScore(playerid) >= 30 && GetPlayerScore(playerid) < 50)
  45.     {
  46.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Advanced Shooter.");
  47.     }
  48.     if (GetPlayerScore(playerid) >= 50 && GetPlayerScore(playerid) < 100)
  49.     {
  50.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Intermediate Shooter.");
  51.     }
  52.     if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) < 200)
  53.     {
  54.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Deadly Shooter.");
  55.     }
  56.     if (GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) < 300)
  57.     {
  58.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Spy Shooter.");
  59.     }
  60.     if (GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) < 500)
  61.     {
  62.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : Expert Shooter.");
  63.     }
  64.     if (GetPlayerScore(playerid) >= 500)
  65.     {
  66.          SendClientMessage(playerid, COLOR_YELLOW,"Your Rank is : God Father.");
  67.     }
  68.     return 1;
  69. }
  70.  
  71. CMD:ranks(playerid, params[])
  72. {
  73.     ShowPlayerDialog(playerid, ranks, DIALOG_STYLE_MSGBOX,"{FF00FF}Ranks","Shooter : 0 - 10\nNewbie Shooter : 10 - 20\nTrainee Shooter : 20 - 30\nAdvanced Shooter : 30 - 50\nIntermediate Shooter : 50 - 100\nDeadly Shooter : 100 - 200\nSpy Shooter : 200 - 300\nExpert Shooter : 300 - 500\nGod Father : 500 +","Close","");
  74.     return 1;
  75. }
  76.  
  77. /////////////////////////////////////////////////////////////////////// SpawnKill System
  78. forward SpawnKillProtection(playerid);
  79.  
  80. public OnPlayerSpawn(playerid)
  81. {
  82.     SetPlayerHealth(playerid, 99999.0);
  83.     SetTimerEx("SpawnKillProtection", 10000, false, "i", playerid);
  84.     SendClientMessage(playerid, COLOR_YELLOW, "Anti-Spawn Kill : You are Under Spawn Kill Protection For 10 Seconds.");
  85.     return 1;
  86. }
  87.  
  88. public SpawnKillProtection(playerid)
  89. {
  90.     SetPlayerHealth(playerid, 100.0);
  91.     SendClientMessage(playerid, COLOR_RED, "Anti-Spawn Kill : Your Spawn Kill Protection Has Ended.");
  92.     return 1;
  93. }
  94. /////////////////////////////////////////////////////////////////////////Laser  System
  95. CMD:putlaser(playerid, prams[])
  96. {
  97.     SetPlayerAttachedObject(playerid,3 , 18643, 6, 0.158249, 0.010233, 0.128052, 6.868255, 351.962524, 356.884216);
  98.     SendClientMessage(playerid, COLOR_YELLOW,"Laser On");
  99.     return 1;
  100. }
  101.  
  102. CMD:removelaser(playerid, params[])
  103. {
  104.     RemovePlayerAttachedObject(playerid, 0);
  105.     SendClientMessage(playerid, COLOR_RED,"Laser Off.");
  106.     return 1;
  107. }
  108. //////////////////////////////////////////////////////////////////// Thanks For Using.....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement