SA-MP Forums Archive
this will be a little problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: this will be a little problem (/showthread.php?tid=155234)



this will be a little problem - selten98 - 17.06.2010

I DONT GET WTH IS WRONG??
Quote:

public AntiJetpack( )
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsSpawned[i] == 1 && IsPlayerAdminLevel(i, 2))
{
new pSpecialAction = GetPlayerSpecialAction(i);
if (pSpecialAction == SPECIAL_ACTION_USEJETPACK )
{
new pname[30];
new string[250];
new inter;
inter = GetPlayerInterior(i);
GetPlayerName(i, pname, 30);
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
SendClientMessageToAll(0xFF7F50AA, string);
IRC_GroupSay(gGroupID, IRC_CHANNEL,string);
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit http://www.ww3server.tk to appeal this ban");
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Det:[JetPack] Int:[%d]",pname,i,inter);
printf("%s", string);
if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
dUserSetINT(PlayerName(i)).("nameban",1);
}
SetPlayerInterior(i,10);
SetPlayerPos(i,219.6257,111.2549,999.0156);
SetPlayerFacingAngle(i,2.2339);
SetCameraBehindPlayer(i);
Banning[i] = 1;
SetTimer("BanPlayer",700,0);
}
}
}
}

this is the original ANTIJETPACK script
Quote:

public AntiJetpack( )
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsSpawned[i] == 1 && PlayerAdminLevel[i] !=1337)
{
new pSpecialAction = GetPlayerSpecialAction(i);
if (pSpecialAction == SPECIAL_ACTION_USEJETPACK )
{
new pname[30];
new string[250];
new inter;
inter = GetPlayerInterior(i);
GetPlayerName(i, pname, 30);
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
SendClientMessageToAll(0xFF7F50AA, string);
ircSay(EchoConnection, EchoChan,string);
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit http://www.lvrcr.com to appeal this ban");
format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Det:[JetPack] Int:[%d]",pname,i,inter);
printf("%s", string);
if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
dUserSetINT(PlayerName(i)).("nameban",1);
}
SetPlayerInterior(i,10);
SetPlayerPos(i,219.6257,111.2549,999.0156);
SetPlayerFacingAngle(i,2.2339);
SetCameraBehindPlayer(i);
Banning[i] = 1;
SetTimer("BanPlayer",700,0);
}
}
}
}

Quote:

C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_3.pwn(1406) : error 012: invalid function call, not a valid address
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_3.pwn(1406) : warning 215: expression has no effect
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_3.pwn(1406) : error 001: expected token: ";", but found ")"
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_3.pwn(1406) : error 029: invalid expression, assumed zero
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_3.pwn(1406) : fatal error 107: too many error messages on one line

*************made by TheByrner or BMUK************
this is in the lvrcr script



Re: this will be a little problem - selten98 - 17.06.2010

NOONE


Re: this will be a little problem - Flashy - 17.06.2010

Donґt bumb your topic every hour. Wait and search forthe answer.


Re: this will be a little problem - selten98 - 17.06.2010

Quote:
Originally Posted by Flashy
Donґt bumb your topic every hour. Wait and search forthe answer.
well i looked for it but i just dont know it. srry if i bother you too much


Re: this will be a little problem - selten98 - 18.06.2010

srry for botheriing you but i LOOKED AT IT for 8 hours but couldnt find what to change PLS i am desperate.