Guest User

Untitled

a guest
Jun 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.96 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <fun>
  4.  
  5. #define VERSION "0.0.1"
  6. #define PLUGIN ""
  7.  
  8. #define ALLOC_STRING(%0) engfunc(EngFunc_AllocString, %0)
  9. #define CREATE_NAMED_ENTITY(%0) engfunc(EngFunc_CreateNamedEntity, %0)
  10. #define REMOVE_ENTITY(%0) engfunc(EngFunc_RemoveEntity, %0)
  11.  
  12. public plugin_init()
  13. {
  14.     register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
  15.     register_clcmd("say /strip", "strip")
  16. }
  17.  
  18. public strip( id )
  19. {
  20.     new i
  21.     while( i++ < 100 )
  22.     {
  23.         set_task(0.1*i, "Task_Strip_User_Weapons", id + i*33)
  24.     }
  25. }
  26.  
  27. public Task_Strip_User_Weapons( id )
  28. {
  29.     id %= 33
  30.     for(new i; i<10; i++)
  31.     {
  32.         strip_user_weapons(id)
  33.         fm_strip_user_weapons(id)
  34.     }
  35. }
  36.  
  37. public fm_strip_user_weapons(id)
  38. {
  39.     static player_weaponstrip
  40.     if( !player_weaponstrip )
  41.     {
  42.         player_weaponstrip = ALLOC_STRING( "player_weaponstrip" )
  43.     }
  44.     new ent = CREATE_NAMED_ENTITY( player_weaponstrip )
  45.    
  46.     dllfunc(DLLFunc_Spawn, ent)
  47.     dllfunc(DLLFunc_Use, ent, id)
  48.     REMOVE_ENTITYent)
  49. }
Add Comment
Please, Sign In to add comment