28.11.2008, 04:37
Enjoy :P
|
Originally Posted by SuperS82
Very nice but I get one problem..
gf-los-santos.pwn(2095) : error 021: symbol already defined: "strtok" gf-los-santos.pwn(2111) : error 047: array sizes do not match, or destination array is too small and my stock strtok looks like this: //----------------------[ strtok() ] ------------------------------- stock strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } Any suggestions?! |
|
Originally Posted by °ғαιιοцт°
Because this include saves the integers in files, you don't have that problem and it's possible to include this into more than 1 script!
|

dini_IntSet(file, "Money", F_Money += amount);
GivePlayerMoney(playerid, amount);


|
Originally Posted by Loyal
Nice Release
![]() |
|
Originally Posted by russiany
Hey Fallout. Works perfectly , but there's a problem.
If a retard use a hack which it sets the money , not add , you're antihack not works . |
public CheckMoneyDisc()
{
for(new i=0; i<GetMaxPlayers(); i++)
{
new file[128];
format(file, sizeof(file), "F_AntiCheat/id_%i.ini", i);
new F_Money;
F_Money = dini_Int(file, "Money");
new cash = GetPlayerMoney(i);
if (cash > F_Money)
{
if ((cash-F_Money) > MAX_DIFFERENCE)
{
SetTimerEx("DifferenceDetected", 2000, 0, "i", i);
}
}
}
}
|
Originally Posted by [MOB
Tr1viUm ]
How does it react on stunting, gambling, drinking sprunk and entering a taxi? It doesn't use the GivePlayerMoney function so that would trigger your script, no? |