Raised This Month: $12 Target: $400
 3% 

help hlstriker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DRACULA
Member
Join Date: Jun 2007
Old 08-26-2007 , 13:38   help hlstriker
Reply With Quote #1

Hlstriker continue my plugin ! It is that plugin =who shows round x from x but i doo not want to shou whit t_say i want it normal whit tsay

ex:. [Name][Round][1][from][20]i chose max_round x

Code:
  #include <amxmodx> 
 
new rounds = 0; 
 
public plugin_init() { 
register_plugin("new plugin","0.1","DRACULA"); 
 
register_event("HLTV","event_new_round","a", "1=0", "2=0"); 
} 
 
 
public event_new_round() 
{ 
rounds++; 
rn_display(); 
} 
 
rn_display() 
{ 
new delta = get_cvar_num("mp_maxrounds") - rounds; 
 
set_hudmessage(255, 0, 0, 0.23, 0.23, 0, 6.0, 4.0) 
show_hudmessage(0, "Round %d from %d", delta, get_cvar_num("mp_maxrounds")); 
}
DRACULA is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-26-2007 , 16:20   Re: help hlstriker
Reply With Quote #2

I don't really understand what you mean. Can you try and explain a little better?
hlstriker is offline
DRACULA
Member
Join Date: Jun 2007
Old 08-27-2007 , 01:08   Re: help hlstriker
Reply With Quote #3

Hlstriker i have need to an plugin ,thats plugin say to whash a round 1 of 30 or round 5 of 30 , x of y
DRACULA is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-27-2007 , 01:23   Re: help hlstriker
Reply With Quote #4

He needs to have a plugin display what round it is out of the maximum rounds? Round: 4/30
M249-M4A1 is offline
DRACULA
Member
Join Date: Jun 2007
Old 08-27-2007 , 01:56   Re: help hlstriker
Reply With Quote #5

Max round 30 and time left show that Round 1/30 , 2/30 ..... 29/30 , 30/30 , thank you for asistents
DRACULA is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-28-2007 , 14:37   Re: help hlstriker
Reply With Quote #6

This might not be what you want; you need give an example of what you want the message to say and how it is to be displayed.

Code:
#include <amxmodx> new roundsElapsed = 1; //use different event if you need to hook the first round public plugin_init() {     register_plugin("new plugin", "0.1", "DRACULA");     register_event("HLTV", "onNewRound", "a", "1=0", "2=0");     register_event("TextMsg", "onRestart", "a", "2=#Game_will_restart_in") } public onNewRound() {     set_hudmessage(255, 0, 0, 0.23, 0.23, 0, 6.0, 4.0)     show_hudmessage(0, "Round %d of %d", ++roundsElapsed, get_cvar_num("mp_maxrounds")); } public onRestart() {     //I would expect the HLTV event to be fired at the start of the first round in this case     roundsElapsed = 0; }

Last edited by Lee; 08-28-2007 at 14:47.
Lee is offline
DRACULA
Member
Join Date: Jun 2007
Old 08-29-2007 , 01:30   Re: help hlstriker
Reply With Quote #7

The plugin is ok but no runing why ?

Last edited by DRACULA; 08-29-2007 at 01:43.
DRACULA is offline
Reply


Thread Tools
Display Modes

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 06:07.


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