Raised This Month: $ Target: $400
 0% 

Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
omgitsme
Veteran Member
Join Date: Mar 2010
Old 07-30-2010 , 11:39   Re: questions
Reply With Quote #3

ok, thanks. and is there like a page where i can see how to give ammo? this dosen't work (for a deagle)
Code:
cs_set_user_bpammo( id, CSW_DEAGLE, 200);
edit: and how do you use client_print? i don't understand. i just made a silly /deagle plugin. and i want it to print "you got a deagle and 150hp"
Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
 
public plugin_init()
{
    register_clcmd("say /deagle", "weapon");
}
 
public weapon(id)
{
        if(is_user_alive(id))
    strip_user_weapons(id)
            give_item( id, "weapon_deagle" );
    set_user_health (id, 150)
    give_item( id, "weapon_knife" );
    client_print ("
and why when i compile it i get 2 errors? and whats the correct command for giving ammo? and what command is it when they respawn you give something?
__________________

Last edited by omgitsme; 07-30-2010 at 12:56.
omgitsme is offline
Send a message via Skype™ to omgitsme
 



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 00:08.


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