Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <hamsandwich>
- native give_item( index, const item[] )
- public plugin_init()
- {
- register_plugin( "auto respawner", "50", "DeathRun Serbia" )
- RegisterHam( Ham_Killed, "player", "Smrt_igraca", 1 )
- register_clcmd( "say /respawn", "respawnuj" )
- }
- public client_putinserver( id )
- {
- if(!is_user_alive(id) && is_user_connected(id))
- set_task( 1.2, "respawnuj", id+343 )
- }
- public respawnuj( id )
- {
- id-=343
- if(!is_user_connected(id) || is_user_alive(id))
- return PLUGIN_HANDLED
- if(get_user_team( id ) == 2 )
- {
- ExecuteHamB( Ham_CS_RoundRespawn, id )
- give_item( id, "weapon_knife" )
- }
- return PLUGIN_CONTINUE
- }
- public Smrt_igraca( id )
- {
- if( is_user_connected( id ) )
- {
- set_task( 0.2, "respawnuj", id+343 )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment