Raised This Month: $ Target: $400
 0% 

every 10 kills get reward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kooomax
Member
Join Date: Jan 2018
Old 01-04-2022 , 17:44   Re: every 10 kills get reward
Reply With Quote #1

Quote:
Originally Posted by zXCaptainXz View Post
Code:
new Kills[33]

public client_putinserver(id)
{
	Kills[id]=0;
}
public YourDeathFunction(victim, attacker)
{
	Kills[attacker]++;
	if(Kills[attacker]>10)
	{
		YourRewardFunction(attacker);
		Kills[attacker]=0;
	}
}
ops my bad, every 100 kill get reward because the kills are saved using vault so i won't the kills get reset
kooomax 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 11:37.


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