Szerző Téma: AntiWeaponCheat  (Megtekintve 2097 alkalommal)

AntiWeaponCheat
« Dátum: 2015. Január 10. - 17:54:54 »
0 Show voters

#include <a_samp>
//public OnGameModeInit()
public OnPlayerUpdate(playerid)
{
//SetTimer(\"SearchUpdate\", 3000, false);
SetTimer(\"CheaterDetected\", 5000, false);
}
/*forward SearchUpdate(playerid);
public SearchUpdate(playerid)
{
GameTextForAll(\"~g~Searching cheater...\", 4500, 1);
}*/
forward KickSucces(playerid);
public KickSucces(playerid)
{
if(Kick(playerid))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"~r~Cheater [%s] kicked the server. Reason: Weaponcheat\", name);
GameTextForAll(string, 5000, 1);
}
}
forward CheaterDetected(playerid);
public CheaterDetected(playerid)
{
new weapons = GetPlayerWeapon(playerid);
switch(weapons)
{
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45/* ide azoknak a fegyvereknek az id számát írod amit nem akarsz hogy használjanak.*/:GameTextForPlayer(playerid, \"~r~Cheat detected! Kicking...\", 6000, 1), SetTimer(\"KickSucces\", 10, false);
}
}

 
Készítő:Én(Péter)
Készítési idő: 5-6perc
És előre elnézést kérek ha rossze helyre tettem.
Tesztelve.
« Utoljára szerkesztve: 2015. Január 10. - 18:15:11 írta RusH. »

AntiWeaponCheat
« Válasz #1 Dátum: 2015. Január 10. - 17:55:41 »
0 Show voters
Te csináltad?

AntiWeaponCheat
« Válasz #2 Dátum: 2015. Január 10. - 17:58:40 »
0 Show voters
Igen.  :)

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
AntiWeaponCheat
« Válasz #3 Dátum: 2015. Január 10. - 18:11:44 »
0 Show voters

Nem elérhető SnooP

  • 1798
  • SnooP
    • Profil megtekintése
AntiWeaponCheat
« Válasz #4 Dátum: 2015. Január 10. - 18:14:51 »
0 Show voters
én csak azt nem értem, ha saját kód akkor miért van az egész full angolul írva? :hmmm:

AntiWeaponCheat
« Válasz #5 Dátum: 2015. Január 10. - 18:15:31 »
+3 Show voters
Mert nem ő írta szerintem.
« Utoljára szerkesztve: 2015. Január 23. - 18:21:54 írta Chrispapa »

Nem elérhető SnooP

  • 1798
  • SnooP
    • Profil megtekintése
AntiWeaponCheat
« Válasz #6 Dátum: 2015. Január 10. - 18:17:08 »
0 Show voters
Bizonyíték?

Nem elérhető Pedró

  • 3341
  • 2014 © Az év Szkriptere
    • Profil megtekintése
AntiWeaponCheat
« Válasz #7 Dátum: 2015. Január 10. - 18:22:27 »
+3 Show voters
public OnPlayerUpdate(playerid)
{
//SetTimer(\"SearchUpdate\", 3000, false);
SetTimer(\"CheaterDetected\", 5000, false);
}
XDDDDDDDDDDDD

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
AntiWeaponCheat
« Válasz #8 Dátum: 2015. Január 10. - 18:25:43 »
0 Show voters
Idézetet írta: Pedró date=1420910547\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"52168\" data-ipsquote-contentclass=\"forums_Topic
public OnPlayerUpdate(playerid)
{
//SetTimer(\"SearchUpdate\", 3000, false);
SetTimer(\"CheaterDetected\", 5000, false);
}
XDDDDDDDDDDDD
 
Aki ezt a kódot beszeretné írni / rakni a saját szerver módjába, akkor annak nagyon szép laggolásmentes játékot kívánnék.

Nem elérhető System

  • 406
    • Profil megtekintése
AntiWeaponCheat
« Válasz #9 Dátum: 2015. Január 10. - 19:26:43 »
0 Show voters
Én senkit nem akarok gyanúsítgatni de ha nem te készítetted legalább lefordíthattad volna.  ;)

Nem elérhető EnterR

  • Globális moderátor
  • 4223
  • dawg
    • Profil megtekintése
AntiWeaponCheat
« Válasz #10 Dátum: 2015. Január 10. - 20:09:07 »
+2 Show voters
Idézetet írta: Chrispapa date=1420910131\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"52168\" data-ipsquote-contentclass=\"forums_Topic
Mert nem ő írta
 
Ezt azért alátámaszthatnád kézzelfogható tényekkel is. Viszont ha valóban a témanyitó készítette, akkor tekintettel arra, hogy ez egy magyar fórum, akkor magyar nyelven publikálja.

Nem elérhető divkn

  • 3259
    • Profil megtekintése
AntiWeaponCheat
« Válasz #11 Dátum: 2015. Január 10. - 20:25:39 »
+8 Show voters
Idézetet írta: danieldeak70 date=1420908894\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"52168\" data-ipsquote-contentclass=\"forums_Topic

\"~r~Cheater [%s] kicked the server.\"

 

Reménykedjünk abban hogy jövőben lesz a szervernek olyan súlya mint az üllőnek.

AntiWeaponCheat
« Válasz #12 Dátum: 2015. Január 23. - 15:46:08 »
0 Show voters
ez ugye az adminokra nem vonatkozik csak a sima player-ekre?

AntiWeaponCheat
« Válasz #13 Dátum: 2015. Január 23. - 19:55:39 »
0 Show voters
Jelenlegi formájában mind a két félre vonatkozik.

AntiWeaponCheat
« Válasz #14 Dátum: 2015. Január 24. - 10:37:10 »
0 Show voters
elnézést kérek de én nem vagyok profi scripter még csak ismerkedek vele mit kell hozzáírni hogy  ad adminokra (rcon adminokra) nem vonatkozzon?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal