Raised This Month: $ Target: $400
 0% 

request auto revive with no wopen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-04-2017 , 13:52   Re: request auto revive with no wopen
Reply With Quote #1

Dude, it's called a WEAPON, not a "wopen".

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

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]) {
        
StripWeapons(idSecondary)
        
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 

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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