Resolved rounds left

Unpaid Requests, Public Plugins
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 620
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

Re: rounds left

#11

Post by Spir0x » 6 Months Ago

Okay nevermind.
I trynna make money, not friends.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 187
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#12

Post by sPe3doN » 6 Months 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
Senior Member
Senior Member
Syria
Posts: 250
Joined: 10 Months Ago
Location: Turkey
Has thanked: 28 times
Been thanked: 1 time
Age: 13
Contact:

#13

Post by Muhammet20 » 5 Months Ago

sPe3doN wrote:
6 Months 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)
	}
}
I just believe in two things , First one is who i see him in the mirror , and second one is who i don't see him in the sky.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests