Raised This Month: $ Target: $400
 0% 

Need help with hooking spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 08-16-2007 , 09:28   Need help with hooking spawn
Reply With Quote #1

Code:
  [...]   new bool:g_restart_attempt[33]; Events:   register_event("ResetHUD", "event_hud_reset", "be");  register_clcmd("fullupdate", "clcmd_fullupdate");  register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in");   public clcmd_fullupdate()      return 2; public event_restart_attempt() {          new players[32], num;          get_players(players, num, "a");          for(new i = 0 ; i < num ; ++i)           g_restart_attempt[players[i]] = true; } public event_hud_reset(id) {          if (g_restart_attempt[id])         {                 g_restart_attempt[id] = false;                 return;          }          event_player_spawn(id) } public event_player_spawn(id) {          set_task(0.1, "Give_Spawnmoney", id) } public Give_Spawnmoney(id) {          new spawnmoney = get_pcvar_num(cv_spawnmoney)          cs_set_user_money(id, cs_get_user_money(id) + spawnmoney);          client_print(id, print_chat, "[%s] %d Automatic spawnmoney given.", print, spawnmoney) }

I need to give money for player whenever he spawns. And this is not working.
[X]-RayCat 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 23:52.


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