Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <engine>
- #define PLUGIN "Nuevo Plugin"
- #define VERSION "1.0"
- #define AUTHOR "Sugisaki"
- new Float:fTime[33]
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_clcmd("invisible", "fw_buy_invisible")
- }
- public client_PostThink(id)
- {
- if(!is_user_connected(id)) return
- if(halflife_time() >= fTime[id])
- set_entity_visibility(id)
- else
- set_entity_visibility(id, 0)
- }
- public fw_buy_invisible(id)
- {
- fTime[id] = halflife_time() + 10.0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement