Raised This Month: $ Target: $400
 0% 

HELP read arg player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-09-2010 , 19:03   Re: HELP read arg player
Reply With Quote #3

Quote:
Originally Posted by DarkGod View Post
This:
PHP Code:
public cmd_armor(id)
{
   new 
Arg2[3]
   
read_argv(2Arg23)
   new 
Armor str_to_num(Arg2)

   
set_user_armor(idArmor)
   return 
PLUGIN_HANDLED

Didn't worked man.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
#include <fakemeta>

#define PLUGIN "Armor
#define VERSION "1.0"
#define AUTHOR "TotalCS"


public plugin_init() {
    
register_concmd("set_armor","cmd_armor",ADMIN_SLAY,"")
}


public 
cmd_armor(id)
{
new 
Arg2[3]
read_argv(2Arg23)
new 
Armor str_to_num(Arg2)
set_user_armor(idArmor)

return 
PLUGIN_HANDLED

totalcsscripting 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 21:54.


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