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
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 05-01-2015 , 07:39   Re: After the restart give_item (id, "weapon_knife"); Does not work
Reply With Quote #2

Quote:
Originally Posted by mahmoodi.1313 View Post
Hi
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

I need server_cmd("sv_restart 2"); , server_cmd("sv_restart 3"); and give_item(id,"weapon_knife");
PHP Code:
strip_user_weapons(id)
    
give_item(id"weapon_knife"
-->
PHP Code:
if(is_user_alive(id))
{
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")

btw why do you need to get user name while you don't have anything to deal with it ?
__________________

Last edited by Shiina.Mashiro; 05-01-2015 at 07:39.
Shiina.Mashiro 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