Guest User

Untitled

a guest
Jun 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.19 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.     new i
  31.     for(i=0; i<10; i++)
  32.     {
  33.         strip_user_weapons(id)
  34.     }
  35.     for(i=0; i<10; i++)
  36.     {
  37.         fm_strip_user_weapons(id)
  38.     }
  39. }
  40.  
  41. public fm_strip_user_weapons(id)
  42. {
  43.     static player_weaponstrip
  44.     if( !player_weaponstrip )
  45.     {
  46.         player_weaponstrip = ALLOC_STRING( "player_weaponstrip" )
  47.     }
  48.     new ent = CREATE_NAMED_ENTITY( player_weaponstrip )
  49.    
  50. //  dllfunc(DLLFunc_Spawn, ent)
  51.     dllfunc(DLLFunc_Use, ent, id)
  52.     REMOVE_ENTITY(ent)
  53. }
  54.  
  55. date: Sat Feb 18 13:48:51 2012 map: de_dust2
  56. type |                             name |      calls | time / min / max
  57. -------------------------------------------------------------------
  58.    n |                  register_plugin |          1 | 0.000001 / 0.000001 / 0.000001
  59.    n |                   register_clcmd |          1 | 0.000003 / 0.000003 / 0.000003
  60.    n |                         set_task |        100 | 0.000153 / 0.000001 / 0.000005
  61.    n |               strip_user_weapons |       1000 | 0.005799 / 0.000003 / 0.000085
  62.    n |                          engfunc |       2001 | 0.001994 / 0.000001 / 0.000004
  63.    n |                          dllfunc |       1000 | 0.002274 / 0.000002 / 0.000048
  64.    p |          Task_Strip_User_Weapons |        100 | 0.000485 / 0.000005 / 0.000005
  65.    p |                      plugin_init |          1 | 0.000001 / 0.000001 / 0.000001
  66.    p |                            strip |          1 | 0.000039 / 0.000039 / 0.000039
  67.    f |             operator*(Float:,_:) |        100 | 0.000020 / 0.000000 / 0.000000
  68.    f |            fm_strip_user_weapons |       1000 | 0.000909 / 0.000001 / 0.000077
  69. 2 natives, 1 public callbacks, 3 function calls were not executed.
Add Comment
Please, Sign In to add comment