Jump to content
  • 0

O intrebare anti-cheat

Guest ChiNeZu


Guest ChiNeZu

Mey am gasit un anti-cheat si ma pune sa ma uit in readme.txt sa urmez pasi aceea

Uitati pasii

1. Extract all files
2. Open your gamemode
3. Write #include <JunkBuster> on top of your script
4. Open JunkBuster.inc
5. Read the introduction
6. Put JB_OnPlayerSpawn(playerid); under OnPlayerSpawn(playerid) in your script
7. Put JB_OnPlayerDeath(playerid,killerid,reason); under OnPlayerDeath(playerid,killerid,reason) in your script
8. Put JB_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); under OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
9. Put JB_OnGameModeInit(); under OnGameModeInit() in your script
10. Put JB_OnPlayerConnect(playerid); under OnPlayerConnect(playerid) in your script
11. The function OnPlayerText(playerid, text[]) in your script should return with JB_OnPlayerText(playerid, text[]);
12. The function OnPlayerPrivmsg(playerid, recieverid, text[]) in your script should return with JB_OnPlayerPrivmsg(playerid, recieverid, text[]);
13. Put if(JB_OnPlayerCommandText(playerid, cmdtext[])) return 1; under OnPlayerCommandText(playerid, cmdtext[]) in your script
14. Put JB_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger); under OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) in your script
15. Put JB_OnPlayerStateChange(playerid, newstate, oldstate); under OnPlayerStateChange(playerid, newstate, oldstate) in your script
16. Compile your gamemode and run your server
Asta e introducerea
¦                        JunkBuster Anti-Cheat                          ¦
¦                                  by                                   ¦
¦                           Double-O-Seven                              ¦
¦                                                                       ¦
¦ This Anti-Cheat script is made by me, Double-O-Seven. The famous      ¦
¦ Anti-Cheat system "PunkBuster" inspired me the script a new           ¦
¦ Anti-Cheat script for SA:MP. It contains many functions against       ¦
¦ normal cheats and cheats from specific cheat tools. It's against      ¦
¦ (command) spam, too. It doesn't contain codes which result many       ¦
¦ codes which would cause kicks/bans of innocent players.               ¦
¦ There is no real check for godmode and no server-based health/armour  ¦
¦ because it's just stupid. Because there are so much possibilities to  ¦
¦ get health without SetPlayerHealth. This would cause very much wrong  ¦
¦ kicks/bans. The only code which could ban innocents is the teleport   ¦
¦ code and the carjack code. It could kick extreme laggy players.       ¦
¦ If JunkBuster kicks/bans too much innocent players, disable the codes ¦
¦ which kick/ban too much innocent players. You can easily configurate  ¦
¦ JunkBuster in the file "JunkBuster.cfg" in the folder "JunkBuster"    ¦
¦ in the folder "scriptfiles". Use "/cfg" ingame if you are (rcon)admin ¦
¦ to update the configuration. Define in "BadWords.cfg" the forbidden   ¦
¦ words, define in "ForbiddenWeapons.cfg" to forbidden weapons.         ¦
¦                                                                       ¦
¦ I call this script a 'Plug & Play'-script! Why? In this version       ¦
¦ You only need to include the script and compile your gamemode.        ¦
¦ Everything important is done by the script itself. You DON'T need to  ¦
¦ change anything! (Except for some functions when they are already     ¦
¦ defined.                                                              ¦
¦                                                                       ¦
¦ This script has been made by Double-O-Seven! You are NOT allowed to:  ¦
¦ - Remove this text                                                    ¦
¦ - Rename JunkBuster                                                   ¦
¦ - Re-release this script                                              ¦
¦ - Say it's your own script                                            ¦
¦                                                                       ¦
¦ But you are allowed to add more functions and use it on your server.  ¦

Si nu inteleg unde sa pun alea de la punctele 6 7 8 .... alea cu Put ....

Un sa le pun in JunkBuster.inc sau in GameMod ? va rog sa imi spuneti si mie ca sunt incepator si mie sa nu stric cv

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

* Put JB_OnPlayerSpawn(playerid); under OnPlayerSpawn(playerid) in your script

Intri in modul respectiv si dai CTRL+F si cauti ce scrie dupa UNDER in cazul nostru OnPlayerSpawn(playerid) apoi adaugi sub ea JB_OnPlayerSpawn(playerid)

Scrie clar in engleza dar deh...cine sa stie engleza

public OnPlayerSpawn(playerid)
/* ce mai ai tu nevoie la on player spawn */

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

  • 0
Guest ChiNeZu

[code]Moro cum ai zis tu nu e bine .... in inculde e la fel ca in gamemod 
Am bagat in gamemod toate alea si decat la 1 imi da eroare uitati errorile
D:\STOP-ZONE\San andreas mods tutorials\GM's\[GM]Romanian RolePlay\gamemodes\gf_ro2.4.5.pwn(9391) : error 010: invalid function or declaration
D:\STOP-ZONE\San andreas mods tutorials\GM's\[GM]Romanian RolePlay\gamemodes\gf_ro2.4.5.pwn(9392) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

2 Errors.
Si uitati linile 9391 si 9392
//---------------------------<[ OnPlayerCommandText ]>--------------------------------------------------------

   if(JB_OnPlayerCommandText(playerid, cmdtext[]));    ----> 9391
   return 1;
public OnPlayerCommandText(playerid, cmdtext[])        -----> 9392
	new pName[24];
	new string[256];
	new playermoney;
	new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new playername[MAX_PLAYER_NAME];
	new cmd[256];
	new tmp[256];
	new giveplayerid, moneys, idx;
	cmd = strtok(cmdtext, idx);
Link to comment
Share on other sites

  • 0

corect, asa ca voi astia geniile kre stiti Pawn la perfectie si vorbiti romana aia absolut corecta, nu mai suferiti si ajutati-l fara atatea comentarii care nu-si au rostul

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Similar Content

    • By Tican Daniel Andrei
      Salutare, am venit cu o cerință ceva mai "imposibilă" din punctul ăsta de vedere. Am văzut recent pe o comunitate de SA:MP că aveau un fel de Script care bloca modurile Cleo (.cs) și fișierele .exe selectate de către serverul respectiv și pur și simplu lăsau jucătorii cu modpack descărcat de unde aveau ei pagina lor de moduri, lucrul ăsta s-ar putea face din script sau e ceva mai avansat și mai complicat ? 
      Dacă s-ar putea face astfel de script,mi-ați putea spune personal printr-un mesaj privat cât ar costa complexitatea unui script de genul acesta? Mulțumesc și seară plăcută vă doresc! 
    • By GamerulFOX
      Salut ! Am o intrebare ! Am vazut ca o parte din persoanele care compileaza un gamemode le apar asa : https://imgur.com/a/MwK4kbW ! Dar eu cand compilez imi apare asa: https://imgur.com/a/1Q2i5AR ! Cum pot sa fac sa imi apara si mie ca in prima poza ?
    • By GamerulFOX
      Salut ! Am o intrebare ! Daca vreau sa folosesc dini pentru server-ul meu de samp, care sunt niste comenzi care m-ar ajuta ? Adica de ex un bonus ! Daca vreau sa dau /bonus sa se puna bonus in "Baza de date" de la dini sa se puna pe unu
    • By Smokie1
      Deci, eu am un server de samp, eu imi pot creea conturi pe server dar alti nu is pot face cont, ma puteti ajuta sa imi spuneti motivul ? Va rog frumos !
    • By salexm93
      Poate nu inteleg eu bine , pe wiki scrie max 2048 globale si 256 per player .
      Sa luam cazul ipotetic al unui server cu 1000 de playeri online .
      new Text:xpbar[MAX_PLAYERS]; new Text:playername[MAX_PLAYERS]; Aici vor fi 2000 create ? Adica destul de aproape de limita
      new PlayerText:xpbar[MAX_PLAYERS]; new PlayerText:playername[MAX_PLAYERS]; Iar Aici vor fi doar 2 ?
      Totodata , PlayerTextDrawDestroy ,la onplayerdisconnect ?
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.