Raised This Month: $ Target: $400
 0% 

[ZP] Class: Bloodsucker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-05-2010 , 11:46   Re: [ZP] Class: Bloodsucker
Reply With Quote #4

Code:
register_event("HLTV", "newround", "a", "1=0", "2=0") public newround(id) {     g_last[id] = get_gametime()     set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)     g_i = 0 }




Code:
#include <hamsandwich> RegisterHam( Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1 ); public fw_PlayerSpawn_Post( id ) {     if ( is_user_alive( id ) )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)         g_i = 0     } }
Or just ( only if you still want using HLTV event ):
Code:
new g_iMaxPlayers; register_event("HLTV", "newround", "a", "1=0", "2=0") g_iMaxPlayers = get_maxplayers( ); public newround() {     for ( new id = 1; id <= g_iMaxPlayers; id++ )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)         g_i = 0     } }
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 01-05-2010 at 11:49.
fezh 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 16:10.


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