[FilterScript] Infective Knife
#4

Quote:
Originally Posted by Pottus
View Post
Let me just point out some flaws here.

1.) You assign the timerid to a variable you only do this when you actually need to kill the timer later in your case this would be when a player disconnects so there should be an array here for each player. The problem here is if a player logs out another connects the connecting player will have that code run on them. Also consider this code will fail here if another timer is set you kill a timer but which one? If two players use this you will have lost your reference!

Code:
public Damage(playerid)
{
	if(damage[playerid] == 5)
	{
		KillTimer(timer);
2.) I don't like the RemovePlayerWeapon() function this function is primed for exploitation just by sending false weapon data it could be possible to fool even server sided ammo amounts.

3.) Overall it's pretty simple you should really think about adding some more substance.
Oh,thanks for that.
Ill didn't thought about that,i was sleepy xD
Reply


Messages In This Thread
Infective Knife - by K0P - 24.01.2016, 17:41
Re: Infective Knife - by Tamer - 24.01.2016, 19:27
Re: Infective Knife - by Pottus - 24.01.2016, 19:39
Re: Infective Knife - by K0P - 25.01.2016, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)