Greetings you all!
I really like the script
Allow round finish! (made by: EKS)
But i've got an idea and it doesn't really go throught with my knowledges in thoose kind of scriptings.
(: So the point is
: At the end of the finished round, starts the next round within changes the map to (nextmap).. when the last round is finished usually server opens the scores list and changes the map! I want at the same time print an text in the middle of screen. For example you can imagine, the printed text "Counter-Terorist win!"
Here's the code i believe in which i have to add that text:
Code:
public Event_EndRound()
{
if(g_IsLastRound == 1)
{
client_print(0,print_chat,"The last round has ended!")
client_print(0,print_center,"We appreciate your playing please wait untill the map changes!")
set_task(5.0,"Task_DelayMapEnd",TASK_ID_DELAYMAPCHANGE,_,_,"a",1) // We delay the end of the map with a few sec, so the last guys death is viewable
}
}
public server_changelevel(map[])
{
if(g_IsLastRound == 1)
Task_DelayMapEnd()
}
public Task_DelayMapEnd()
{
remove_task(TASK_ID_DELAYMAPCHANGE)
g_IsLastRound = 0
if(get_cvar_num("mp_timelimit") == 0)
server_cmd("mp_timelimit %d",g_OldTimelimit)
}
The line in red is what i have added to the script! Any suggestions, comments ?
Is it possible to change the color of the centered text ? ( IM ingame )
__________________