AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help hlstriker (https://forums.alliedmods.net/showthread.php?t=60081)

DRACULA 08-26-2007 13:38

help hlstriker
 
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"));
}


hlstriker 08-26-2007 16:20

Re: help hlstriker
 
I don't really understand what you mean. Can you try and explain a little better?

DRACULA 08-27-2007 01:08

Re: help hlstriker
 
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

M249-M4A1 08-27-2007 01:23

Re: help hlstriker
 
He needs to have a plugin display what round it is out of the maximum rounds? Round: 4/30

DRACULA 08-27-2007 01:56

Re: help hlstriker
 
Max round 30 and time left show that Round 1/30 , 2/30 ..... 29/30 , 30/30 , thank you for asistents

Lee 08-28-2007 14:37

Re: help hlstriker
 
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; }

DRACULA 08-29-2007 01:30

Re: help hlstriker
 
The plugin is ok but no runing why ?


All times are GMT -4. The time now is 22:04.

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