Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 05-01-2015 , 09:45   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #6

The problems :
1. Sometimes the admin name instead of the name of the player writes .
PHP Code:
ColorChat(0GREEN,"%s: test",name); 
2. After the restart give_item (id, "weapon_knife"); Does not work .
PHP Code:
public knife(idlevelcid

if(
cmd_access(id,levelcid1)) 

    new 
name[32
    
get_user_info(id"name"name31
    
strip_user_weapons(id
        
give_item(id,"weapon_knife"); 
    
server_cmd("sv_restart 2"); 
    
server_cmd("sv_restart 3"); 

return 
PLUGIN_HANDLED 

The full code in the file.

Last edited by mahmoodi.1313; 05-01-2015 at 14:01.
mahmoodi.1313 is offline
 



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