Raised This Month: $ Target: $400
 0% 

After the restart give_item (id, "weapon_knife"); Does not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 05-01-2015 , 12:44   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #1

sadly my net was gone btw here you go
Tested and working
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#define ACCESS ADMIN_CVAR
new bool:kniferound;

public 
plugin_init() {
    
RegisterHam(Ham_Spawn"player""Give_knife");
    
register_clcmd("say /knf","knife",ACCESS);
}

public 
knife(idlevelcid)  
{  
    if(
cmd_access(id,levelcid1))  
    {  
        
        new 
szName[33]
        
get_user_name(idszNamecharsmax(szName));
        
client_print(0,print_chat,"ADMIN %s started knife round",szName)
        
//server_print("ADMIN %s started knife round",szName);
        
server_cmd("sv_restartround 3")
        
kniferound true;
    }  
    return 
PLUGIN_HANDLED  
}  

public 
Give_knife(id)
{
    if(
is_user_alive(id) && kniferound)
    {
        
strip_user_weapons(id)
        
give_item(id,"weapon_knife")
    }

Attached Files
File Type: sma Get Plugin or Get Source (test.sma - 610 views - 940 Bytes)
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
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 20:14.


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