Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <hamsandwich>
- #include <cstrike>
- 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 )
- {
- set_task( 1.2, "respawnuj", id )
- }
- public respawnuj( id )
- {
- if( !is_user_alive( id ) && cs_get_user_team( id ) == CS_TEAM_CT )
- {
- ExecuteHamB( Ham_CS_RoundRespawn, id )
- give_item( id, "weapon_knife" )
- give_item( id, "weapon_scout" )
- give_item(id,"ammo_0nato")
- }
- }
- public Smrt_igraca( id )
- {
- if( is_user_connected( id ) )
- {
- set_task( 0.2, "respawnuj", id )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement