Raised This Month: $ Target: $400
 0% 

request auto revive with no wopen


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-04-2017 , 10:03   Re: request auto revive with no wopen
Reply With Quote #5

PHP Code:
#include <amxmisc> 
#include <fun> 
#include <hamsandwich> 

new bool:bla[33]

public 
plugin_init() { 
    
register_event("DeathMsg""Death""a")
    
RegisterHam(Ham_Spawn"player""Spawn"1)
}

public 
client_putinserver(id) {
    
bla[id] = false
}

public 
Spawn(id) {
    if(
is_user_alive(id) && bla[id]) {
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
        
bla[id] = false
    
}
}

public 
Death() {
    new 
menu menu_create("Respawn?""Handle"
    
menu_additem(menu"Yes.""1"
    
menu_additem(menu"No.""2"
    
menu_display(read_data(2), menu
    return 
PLUGIN_HANDLED 
}

public 
Handle(idmenuitem) { 
    new 
szData[7], szName[64], accesscallback 
    menu_item_getinfo
(menuitemaccessszData6szName63callback
    switch(
str_to_num(szData)) 
    { 
        case 
1: { bla[id] = trueExecuteHamB(Ham_CS_RoundRespawnid); }
        case 
2: return PLUGIN_HANDLED 
    

    return 
PLUGIN_HANDLED 

__________________

Last edited by OciXCrom; 05-04-2017 at 10:03.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode