Jump to content

Codare script


Kata12

Recommended Posts

#define HAVE_PROTECTION  ( 0 ) // Schimba pe "1" daca vrei ca protectia sa fie activa.

if HAVE_PROTECTION == 1

    #error Do not touch my gamemode!

#endif

Cam asa ar trebui sa arate.

Your argument is invalid.

Daca cineva pune mana pe script, crezi ca i-ar fi greu sa stearga bucata asta de cod?

Din moment ce are acces la toate fisierele pwn / inc, cum sterge creditele, asa poate sterge si "protectia" asta.

Link to comment
Share on other sites

Your argument is invalid.

Daca cineva pune mana pe script, crezi ca i-ar fi greu sa stearga bucata asta de cod?

Din moment ce are acces la toate fisierele pwn / inc, cum sterge creditele, asa poate sterge si "protectia" asta.

Daca acel "cineva" ar fi un incepator (de obiecei incepatorii sterg creditele), nu ar sti ce sa faca.Oricum, nu am zis ca bucata asta de cod functioneaza ca o protectie, iar aici pun cuvantul "protectie" intre ghilimele, eu am aratat ce se poate face ca sa primesti o eroare (doar un simplu exemplu, nimic mai mult).

Link to comment
Share on other sites

Daca acel "cineva" ar fi un incepator (de obiecei incepatorii sterg creditele), nu ar sti ce sa faca.Oricum, nu am zis ca bucata asta de cod functioneaza ca o protectie, iar aici pun cuvantul "protectie" intre ghilimele, eu am aratat ce se poate face ca sa primesti o eroare (doar un simplu exemplu, nimic mai mult).

Atata timp cat o sa aiba acces la fisiere, o sa modifice si daca s-a apucat de 5 minute de programare (o sa intrebe pe sa-mp.ro/com si tot o sa scoata directivele alea).

Cum am spus, singura varianta 100% functionabila e un plugin, dar te complici aiurea.

Link to comment
Share on other sites

Sau mai simplu... :)) asa foloseam eu.

faceam un INCLUDE si in el puneam #error Do not touch my gamemode!

E acelasi lucru cu ce a spus DarkyTheAngel...

Daca-i dai include-ul lui X, el poate edita chestia asta fara probleme.

Daca nu-i dai include-ul, nu o sa poata compila gm-ul.

Deci nu reprezinta o metoda sigura "anti-stergere credite".

In plus, cel ce a facut topicul vrea sa stie cum sa faci ca atunci cand modifici creditele sa primeasca ala eroare, nu tot timpul.

later edit: Rock, y_lock face acelasi lucru pe care il face si un plugin "protectie", doar ca y_lock e mai usor (oarecum).

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.