Detaljan opis problema: Ovako: Kad dam komandom /givemoney JunkBuster odmah smanji pare kako je igrac imao... Tako na svake komadne npr: /givemoneys(to je za sve igrace ili u okolini) i to... Ako ima neko da mi objasni kako da to fix-am...
Dio skripte:
JB imam u INC . a u FS imam samo ovo KOD:
#define FILTERSCRIPT
#include
#include
public OnFilterScriptInit()
{
print("\n+---------------------------------------------+");
print("¦ JunkBuster Anti-Cheat ¦");
print("¦ by ¦");
print("¦ Double-O-Seven ¦");
print("¦ loaded as filterscript! ¦");
print("+-----------------------------------------------+\n");
print("You are now using JunkBuster as filterscript!");
print("Make sure that you have included JunkBuster_Cient.inc");
print("in all your other script! You must include JunkBuster.inc");
print("in ONLY ONE script! In this case, it's this filterscript!");
print("Use JunkBuster_Client.inc in your other scripts!");
return 1;
}
/givemoney komanda
if(strcmp(cmd, "/givemoney", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /givemoney [playerid/DioImena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 1337)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
ConsumingMoney = 1;
GivePlayerMoney(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmWarn: Administrator %s je namestio stavku %s novca na $%d.", sendername,giveplayer,money);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Niste autorizirani za ovu komandu - nemate administrator / gamemaster level.");
}
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
