Resolved rounds left

Unpaid Requests, Public Plugins
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 570
Joined: 1 Year Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 6 times
Age: 19
Contact:

Re: rounds left

#11

Post by Spir0x » 1 Month Ago

Okay nevermind.
I trynna make money, not friends.

User avatar
sPe3doN
Senior Member
Senior Member
Bosnia & Herzegovina
Posts: 154
Joined: 1 Year Ago
Has thanked: 15 times
Been thanked: 3 times
Age: 20
Contact:

#12

Post by sPe3doN » 1 Month Ago

Not working jack it's the same problem it's show me every round
Round remaining: 6

[ Post made via Android ]

User avatar
Muhammet20
Member
Member
Turkey
Posts: 94
Joined: 5 Months Ago
Has thanked: 8 times
Been thanked: 1 time
Contact:

#13

Post by Muhammet20 » 3 Weeks Ago

sPe3doN wrote:
1 Month Ago
Not working jack it's the same problem it's show me every round
Round remaining: 6
try this:
__________

Code: Select all

#include <amxmodx>
#include <amxmisc>

new MaxRounds
new RoundCount

public plugin_init() {

	register_plugin("roundsleft", "", "Muhammet Kaya")
	register_logevent("round_end", 2, "1=Round_End")
	register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
	register_clcmd("say roundsleft","ShowRoundsLeft")
	MaxRounds = get_cvar_pointer("mp_maxrounds")
}
public round_end() 
{ 
    RoundCount++ 
}

public new_map_or_restart() 
{ 
    RoundCount = 0 
}
public ShowRoundsLeft(id)
{
	if(get_pcvar_num(MaxRounds) == 0)
	{
		client_print(id,print_chat, "No Rounds Limit")
	}
	if(get_pcvar_num(MaxRounds) > 0)
	{
		client_print(id,print_chat, "Rounds Left: %d", get_pcvar_num(MaxRounds) - RoundCount)
	}
}
Don't Say This Is Impossible , Because Nothing Impossible.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest