Advertisement
Sugisaki

Algo medio bonito

Oct 2nd, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.50 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. #define PLUGIN "Nuevo Plugin"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Sugisaki"
  7.  
  8. new Float:fTime[33]
  9.  
  10. public plugin_init()
  11. {
  12.     register_plugin(PLUGIN, VERSION, AUTHOR)
  13.     register_clcmd("invisible", "fw_buy_invisible")
  14. }
  15. public client_PostThink(id)
  16. {
  17.     if(!is_user_connected(id)) return
  18.    
  19.     if(halflife_time() >= fTime[id])
  20.         set_entity_visibility(id)
  21.     else
  22.         set_entity_visibility(id, 0)
  23. }
  24. public fw_buy_invisible(id)
  25. {
  26.     fTime[id] = halflife_time() + 10.0
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement