MegastoRM

Untitled

Apr 30th, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <fun>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "author"
  10.  
  11. new maxplayers, gMsgWpnPick
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. gMsgWpnPick = get_user_msgid("WeapPickup")
  17. register_message(gMsgWpnPick, "msgCheckWeapon")
  18. maxplayers = get_maxplayers()
  19. // Add your code here...
  20. }
  21.  
  22. public msgCheckWeapon(msg_id, iDest, msg_ent)
  23. {
  24. if(1<=msg_ent<=maxplayers)
  25. return;
  26.  
  27. if(get_msg_arg_int(1) == 14 || get_msg_arg_int(1) == 18 || get_msg_arg_int(1) == 24)
  28. {
  29. new param[1]
  30. param[0] = msg_ent
  31. set_task(0.1, "DropWeapon", msg_ent)
  32. }
  33. }
  34.  
  35. public DropWeapon(id)
  36. {
  37. if(1<=id<=maxplayers)
  38. {
  39. engclient_cmd(id, "drop", "weapon_awp")
  40. give_item(id, "weapon_scout")
  41. give_item(id, "ammo_762nato")
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment