Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fakemeta>
- #include <fun>
- #define VERSION "0.0.1"
- #define PLUGIN ""
- #define ALLOC_STRING(%0) engfunc(EngFunc_AllocString, %0)
- #define CREATE_NAMED_ENTITY(%0) engfunc(EngFunc_CreateNamedEntity, %0)
- #define REMOVE_ENTITY(%0) engfunc(EngFunc_RemoveEntity, %0)
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
- register_clcmd("say /strip", "strip")
- }
- public strip( id )
- {
- new i
- while( i++ < 100 )
- {
- set_task(0.1*i, "Task_Strip_User_Weapons", id + i*33)
- }
- }
- public Task_Strip_User_Weapons( id )
- {
- id %= 33
- new i
- for(i=0; i<10; i++)
- {
- strip_user_weapons(id)
- }
- for(i=0; i<10; i++)
- {
- fm_strip_user_weapons(id)
- }
- }
- public fm_strip_user_weapons(id)
- {
- static player_weaponstrip
- if( !player_weaponstrip )
- {
- player_weaponstrip = ALLOC_STRING( "player_weaponstrip" )
- }
- new ent = CREATE_NAMED_ENTITY( player_weaponstrip )
- // dllfunc(DLLFunc_Spawn, ent)
- dllfunc(DLLFunc_Use, ent, id)
- REMOVE_ENTITY(ent)
- }
- date: Sat Feb 18 13:48:51 2012 map: de_dust2
- type | name | calls | time / min / max
- -------------------------------------------------------------------
- n | register_plugin | 1 | 0.000001 / 0.000001 / 0.000001
- n | register_clcmd | 1 | 0.000003 / 0.000003 / 0.000003
- n | set_task | 100 | 0.000153 / 0.000001 / 0.000005
- n | strip_user_weapons | 1000 | 0.005799 / 0.000003 / 0.000085
- n | engfunc | 2001 | 0.001994 / 0.000001 / 0.000004
- n | dllfunc | 1000 | 0.002274 / 0.000002 / 0.000048
- p | Task_Strip_User_Weapons | 100 | 0.000485 / 0.000005 / 0.000005
- p | plugin_init | 1 | 0.000001 / 0.000001 / 0.000001
- p | strip | 1 | 0.000039 / 0.000039 / 0.000039
- f | operator*(Float:,_:) | 100 | 0.000020 / 0.000000 / 0.000000
- f | fm_strip_user_weapons | 1000 | 0.000909 / 0.000001 / 0.000077
- 2 natives, 1 public callbacks, 3 function calls were not executed.
Add Comment
Please, Sign In to add comment