Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <engine>
- #include <colorchat>
- #include <fakemeta>
- #define PLUGIN "Set_start KZ"
- #define VERSION "1.0"
- #define AUTHOR "MA MILF KZ IDEMO NIS"
- new bool: g_bStart[ 33 ]
- new Float: g_fOrigin[ 33 ][ 3 ]
- public plugin_init()
- {
- register_plugin( PLUGIN, VERSION, AUTHOR )
- register_clcmd( "say /start", "start" )
- register_clcmd( "say /setstart", "set_start" )
- }
- public set_start( id )
- {
- g_bStart[ id ] = true
- entity_get_vector( id, EV_VEC_origin, g_fOrigin[ id ] )
- ColorChat( id, BLUE, "^4[KZ]^1 You have set your^3 custom start^1" )
- return PLUGIN_HANDLED
- }
- public start( id )
- {
- if( g_bStart[ id ] )
- {
- set_pev(id, pev_velocity, Float:{0.0, 0.0, 0.0})
- set_pev( id, pev_flags, pev(id, pev_flags) | FL_DUCKING )
- entity_set_origin( id, g_fOrigin[ id ] )
- SendCmd( id, "say /reset" )
- return PLUGIN_HANDLED
- }
- return PLUGIN_CONTINUE
- }
- stock SendCmd( id , text[] )
- {
- message_begin( MSG_ONE, 51, _, id )
- write_byte( strlen(text) + 2 )
- write_byte( 10 )
- write_string( text )
- message_end()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement