Jump to content

Sistem de factiuni

RaZVaN ^ xD

Recommended Posts

Sistem de factiuni

Autor: RaZVaN ^ xD


Acest sistem de factiuni este unul static, adica factiunile nu pot fi create direct din joc.

Sistemul de salvare este bazat pe SQLite.

Procesorul de comenzi este ZCMD in combinatie cu sscanf2.

De asemenea, pentru crearea de loop-uri eficiente am folosit foreach.

Initial, am dorit sa creez doar un tutorial, insa m-am razgandit si am creat un filterscript-tutorial. Informatii veti gasi in codul-sursa.

Are un numar mic de comenzi, dupa mine, cele mai importante pentru un astfel de filterscript:

  • /angajeaza - Sintaxa: [ playerid / nume jucator ]
  • /concediaza - Sintaxa: [ playerid / nume jucator ]
  • /seteazarangul - Sintaxa: [ playerid / nume jucator ] [ rang ] ( Rangul trebuie sa fie cuprins intre 1 - 6 )
  • /falider - Sintaxa: [ playerid / nume jucator ] [ ID factiune ] ( ID-ul factiunii poate fi cuprins intre 0 - 10, insa poate fi modificat foarte usor )
  • /parasestefactiunea - Sintaxa: FARA SINTAXA
  • /factiunechat ( /fc ) - Sintaxa: [ mesaj ]


Daca veti gasi vreo eroare in acest cod ( nu am idee ce eroare se poate gasi intr-un asa script ), postati aici sau trimiteti-mi un PM.


  • SA-MP Dev. Team - SQLite
  • Zeex - ZCMD
  • Y_Less - sscanf2, foreach si DB_Escape
  • RaZVaN ^ xD - Scriptare


[download]Pastebin[/download] ( doar codul-sursa )

[download]Solidfiles [/download]( .pwn + .amx + .INCs + plugins )

Y!M: [email protected] ( nu este ID pt. help-center )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.