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 - 611 views - 940 Bytes)
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 05-01-2015 , 13:22   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #2

Thank you
I can use BLUE and GREEN color?
PHP Code:
client_print(0,print_chat,"ADMIN %s started knife round",szName
Thanks again
mahmoodi.1313 is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 05-01-2015 , 13:25   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #3

Quote:
Originally Posted by mahmoodi.1313 View Post
Thank you
I can use BLUE and GREEN color?
PHP Code:
client_print(0,print_chat,"ADMIN %s started knife round",szName
Thanks again
change this to

PHP Code:
ColorChat(0,BLUE,"ADMIN %s started knife round",szName
For tut
https://forums.alliedmods.net/showth...hlight=compile
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 05-01-2015 at 13:25.
indraraj striker is offline
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 05-01-2015 , 14:07   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #4

Worked .
Thank you .
mahmoodi.1313 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