Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fun>
- #include <cstrike>
- #include <hamsandwich>
- public plugin_init()
- {
- register_plugin("Respawn", "1.", "LoMi")
- register_clcmd("say /respawn", "Respawnujse")
- }
- public Respawnujse(id)
- {
- if(is_user_alive( id )) {
- return PLUGIN_HANDLED; // Zaustavlja jer je igrac mrtav
- }
- if ( cs_get_user_team(id) == CS_TEAM_T )
- {
- ExecuteHam(Ham_Respawn, id)
- give_item(id, "weapon_glock18")
- }
- else if ( cs_get_user_team(id) == CS_TEAM_CT )
- {
- ExecuteHam(Ham_Respawn, id)
- give_item(id, "weapon_usp")
- }
- return PLUGIN_HANDLED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement