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 , 07:54   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #3

not work !
PHP Code:
public knife(idlevelcid)
{
if(
cmd_access(id,levelcid1))
{
    new 
name[32]
    
get_user_info(id"name"name31)
    if(
is_user_alive(id))
    {
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    } 
    
server_cmd("sv_restart 2");
    
server_cmd("sv_restart 3");
}
return 
PLUGIN_HANDLED

Yes, But sometimes writes the name of the player rather than admin .
Code :
PHP Code:
public knife(idlevelcid)
{
if(
cmd_access(id,levelcid1))
{
    new 
name[32]
    
get_user_info(id"name"name31)
    if(
is_user_alive(id))
    {
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    } 
    
server_cmd("sv_restart 2");
    
server_cmd("sv_restart 3");
    
ColorChat(0BLUE,"%s: Join . . .",name);
}
return 
PLUGIN_HANDLED

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