Szerző Téma: [INC][FILTERSCRIPT] Anti flood és anti pénz cheat  (Megtekintve 1589 alkalommal)

Nem elérhető Sramm

  • 596
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Dátum: 2012. Június 15. - 14:26:17 »
+1 Show voters
Sziasztok! Unatkoztam és összedobtam ezt az egyszerû kis Filterscriptet. A lényege, hogy az anticheat-et és a flood-ot kiküszöbölje.
Kód:
 

new af;
stock GPMoney(p,m) return GivePlayerMoney(p,m),SetPVarInt(p, \"m\", m);
#define GivePlayerMoney GPMoney
stock AntiFlood_On() return af = 1;
stock AntiFlood_Off() return af = 0;
public OnPlayerText(playerid,text[])
{
new t[128];
if(af== 1)
{
if(Compare(GetPVarString(playerid,\"hsz\",t,128),text)) return SendClientMessage(playerid,-1,\"Ne floodolj\"),0;
SetPVarString(playerid,\"hsz\",text);
}
return 1;
}
stock Compare(comp[], with[]) //by: florian
{
new LenghtComp = strlen(comp);
new LenghtWith = strlen(with);
new Character;
if( LenghtComp != LenghtWith ) return false;
for( new i = 0; i < LenghtComp; i++ )
{
    if( comp == with )
    {
        Character++;
}
}
if( LenghtComp == Character ) return true;
return false;
}
public OnPlayerUpdate(playerid)
{
if(GetPlayerMoney(playerid) != GetPVarInt(playerid,\"m\")) return BanEx(playerid,\"Cheat\"); return 1;
}

 
Ki/be kapcsolás (Antiflood)
Akárhova:
 
AntiFlood_On();

 
Kikapcsolás:
 
AntiFlood_Off();

 
Ezt a mód elejére kell tenni! Nem aljára, nem középre, elejére. (Az incek alá) Vagy külön inc-be beágyazod. Ha nem megy szólj.
« Utoljára szerkesztve: 2012. Június 19. - 10:50:44 írta Sramm »

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #1 Dátum: 2012. Június 15. - 15:02:19 »
0 Show voters
[mod]Jó lenne ha eldöntetnéd, hogy ez ADD-ON, INCLUDE vagy FILTERSCRIPT![/mod]

Nem elérhető Sramm

  • 596
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #2 Dátum: 2012. Június 15. - 15:07:03 »
0 Show voters
Idézetet írta: DrAkE date=1339765339\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22881\" data-ipsquote-contentclass=\"forums_Topic
Jó lenne ha eldöntetnéd, hogy ez ADD-ON, INCLUDE vagy FILTERSCRIPT!
 
A leírás alján ott van. Mindegyiknek elmegy. De fõleg ADD-ON.

[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #3 Dátum: 2012. Június 19. - 09:24:19 »
0 Show voters
Sramm, ez hülyeség.Ez inkább arra szolgál, hogy ne írj be ugyanannyi betût az elõzõ és a mostani mondatodban sem.
Péld beírom: alma (4 karakter), beírom szék(4 karakter), kiirja egybõl, ne floodolj.

Nem elérhető Sramm

  • 596
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #4 Dátum: 2012. Június 19. - 10:51:06 »
0 Show voters
Igazad van, javítva.

Technokol

  • Vendég
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #5 Dátum: 2012. Június 19. - 10:55:31 »
0 Show voters
Idézetet írta: lackos888 date=1340090659\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22881\" data-ipsquote-contentclass=\"forums_Topic
Sramm, ez hülyeség.Ez inkább arra szolgál, hogy ne írj be ugyanannyi betût az elõzõ és a mostani mondatodban sem.
Péld beírom: alma (4 karakter), beírom szék(4 karakter), kiirja egybõl, ne floodolj.
 
Eléggé gáz :D

dexi

  • Vendég
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #6 Dátum: 2012. Június 19. - 18:03:39 »
0 Show voters
Naa zsír valaki felhasználta a munkámat : D.
Szép munka lett. Jó scripterré fejlõdhetsz ha kitartó vagy. :)

Nem elérhető Sramm

  • 596
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #7 Dátum: 2012. Június 20. - 08:18:01 »
0 Show voters
Idézetet írta: Fl0rian date=1340121819\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22881\" data-ipsquote-contentclass=\"forums_Topic
Naa zsír valaki felhasználta a munkámat : D.
Szép munka lett. Jó scripterré fejlõdhetsz ha kitartó vagy. :)
 
Kösz. Amúgy igen, én mindig használom, nagyon jó kis kód :)

Nem elérhető kurta999

  • 2759
  • Éllő fédisznó
    • Profil megtekintése
[INC][FILTERSCRIPT] Anti flood és anti pénz cheat
« Válasz #8 Dátum: 2012. Június 21. - 15:18:39 »
0 Show voters
GetPVarString()
 

Returns   This function returns the length of player\'s PVarString.

Ne a visszatérési értéket hasonlítsd össze a szöveggel, hanem azt, amit beleír neked a \"t\" változóba!
Az anticheat viszont bannolni fog, ha újrafestem a kocsimat, vagy stuntbónusszal szerzek pénzt.
« Utoljára szerkesztve: 2012. Június 21. - 15:21:09 írta kurta999 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal