Posts: 120
Threads: 28
Joined: Jan 2008
Reputation:
0
for my server, i want to make a ANTI hack system, i know how im going to do it..sort of..
Basicly, what i want to do is if you get 501 money or more in a second, its kick and i anna do it if ur a special team and Have blah blah guns, u get banned
So, all i need to know is where do i put the code for these?
Posts: 120
Threads: 28
Joined: Jan 2008
Reputation:
0
so, which Public or whatever?
Posts: 120
Threads: 28
Joined: Jan 2008
Reputation:
0
Does this make it, so if you gain 500 in a second, ur banned?
Posts: 631
Threads: 58
Joined: Jun 2010
Reputation:
0
07.07.2011, 23:28
(
Last edited by dowster; 07/07/2011 at 11:29 PM.
Reason: Sorry for bump
)
just make an array
new money[MAX_PLAYERS]
then inside onplayerupdate put
if(GetPlayerMoney(playerid) != money[playerid])
{
new changeinmoney;
changeinmoney = (money[playerid] - GetPlayerMoney(playerid));
GivePlayerMoney(playerid, changeinmoney);
return 1;
}
this will make all money serversided so instead of giveplayermoney to actually give them money it would be
money[playerid] = (money[playerid] + amount)
shit sorry for bump, this had popped up in suggested threads, didnt bother checking the date. :/