Raised This Month: $ Target: $400
 0% 

Run time error 10 cs_set_user_money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kevin14144
Member
Join Date: Jul 2007
Old 01-28-2009 , 11:17   Re: Run time error 10 cs_set_user_money
Reply With Quote #4

Quote:
Originally Posted by SnoW View Post
You can't pass player's id to roundstart event, it's global, so just loop them:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "kevin14144"
#define DEBUG
new max_players;
public plugin_init() 
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_logevent("GiveAwp", 2, "1=Round_Start")
        max_players = get_maxplayers();
}
 
public GiveAwp()
{
 for(new player = 1; player <= max_players; player++)
 {
  cs_set_user_money(player,0)
  strip_user_weapons (player)
  give_item(player, "weapon_hegrenade")
  give_item(player, "weapon_knife")
  give_item(player, "weapon_awp")
  give_item(player, "ammo_338magnum")
  give_item(player, "ammo_338magnum")
  give_item(player, "ammo_338magnum")
  give_item(player, "item_kevlar")
  give_item(player, "item_assaultsuit")
  give_item(player, "item_thighpack")
 }
}
No use .

It also show Run time error 10 (plugin "asd.amxx") (native "cs_set_user_money") - debug not enabled!
kevin14144 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 01:45.


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