Raised This Month: $ Target: $400
 0% 

Run time error 10 cs_set_user_money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-28-2009 , 11:12   Re: Run time error 10 cs_set_user_money
Reply With Quote #3

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++)
 {
   if(is_user_alive(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")
  }
 }
}

Last edited by SnoW; 01-28-2009 at 11:18.
SnoW is offline
Send a message via MSN to SnoW
 



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