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
- for(new i; i<10; i++)
- {
- strip_user_weapons(id)
- 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_ENTITYent)
- }
Add Comment
Please, Sign In to add comment