Jump to content
  • 0

O intrebare anti-cheat


Guest ChiNeZu

Question

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)
{ 
JB_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);
//-------------------------------[Pay]--------------------------------------------------------------------------
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

Guest
This topic is now closed to further replies.
×
×
  • 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.