Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <engine>
  4. #include <colorchat>
  5. #include <fakemeta>
  6.  
  7. #define PLUGIN "Set_start KZ"
  8. #define VERSION "1.0"
  9. #define AUTHOR "MA MILF KZ IDEMO NIS"
  10.  
  11. new bool: g_bStart[ 33 ]
  12. new Float: g_fOrigin[ 33 ][ 3 ]
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin( PLUGIN, VERSION, AUTHOR )
  17.  
  18. register_clcmd( "say /start", "start" )
  19. register_clcmd( "say /setstart", "set_start" )
  20. }
  21. public set_start( id )
  22. {
  23. g_bStart[ id ] = true
  24. entity_get_vector( id, EV_VEC_origin, g_fOrigin[ id ] )
  25. ColorChat( id, BLUE, "^4[KZ]^1 You have set your^3 custom start^1" )
  26. return PLUGIN_HANDLED
  27. }
  28. public start( id )
  29. {
  30. if( g_bStart[ id ] )
  31. {
  32. set_pev(id, pev_velocity, Float:{0.0, 0.0, 0.0})
  33. set_pev( id, pev_flags, pev(id, pev_flags) | FL_DUCKING )
  34. entity_set_origin( id, g_fOrigin[ id ] )
  35. SendCmd( id, "say /reset" )
  36. return PLUGIN_HANDLED
  37. }
  38. return PLUGIN_CONTINUE
  39. }
  40. stock SendCmd( id , text[] )
  41. {
  42. message_begin( MSG_ONE, 51, _, id )
  43. write_byte( strlen(text) + 2 )
  44. write_byte( 10 )
  45. write_string( text )
  46. message_end()
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement