Raised This Month: $ Target: $400
 0% 

make / Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rose
Junior Member
Join Date: Sep 2008
Old 02-05-2009 , 16:49   make / Fix
Reply With Quote #1

Hello ... could you make this plugin work in the first 10 seconds at the first zombie ( and make the first 10-9-8-7-6-5-4-3-2-1 seconds whit voice? )

Quote:
#include <amxmodx>
#include <engine>

new timer = 10
new maxplayers,fakeEnt
new countername[11][] = {"zero","one","two","three","four","five","si x","seven","eight","nine","ten"}

public plugin_init() {
register_plugin("Timer", "1", "OvY")

register_logevent("StartRound",2,"0=World triggered", "1=Round_Start")
register_logevent("EndRound" ,2,"0=World triggered", "1=Round_Draw", "1=Round_End")

maxplayers = get_maxplayers()

fakeEnt = create_entity("info_target")
entity_set_string(fakeEnt,EV_SZ_classname,"se rverFrame")
register_think("serverFrame","server_fakeFram e")
}

public server_fakeFrame(entid){
if(timer > 0) {
client_cmd(0,"spk fvox/%s.wav",countername[timer])
set_hudmessage(random_num(1,255), random_num(1,255), random_num(1,255), -1.0, 0.60, 0, 1.0, 1.0, 0.2, 0.1, 4)
for(new b=1;b<=maxplayers;b++)
show_hudmessage(b,"In %i secunde incepe macelu.",timer)
}
if(timer == 0) {
set_hudmessage(255, 0, 0, -1.0, 0.60, 0, 1.0, 6.0, 0.2, 0.1, 4)
for(new b=1;b<=maxplayers;b++) {
show_hudmessage(b,"A inceput macelu,hf.")
}
return PLUGIN_HANDLED
}
timer--
entity_set_float(entid,EV_FL_nextthink,halfli fe_time() + 1.0)
return PLUGIN_HANDLED
}

public StartRound() {
timer = 10
entity_set_float(fakeEnt,EV_FL_nextthink,half life_time() + 0.01)
}
Rose is offline
Reply



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 10:20.


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