Jump to content
  • 0

ZCMD


XpLoD

Question

Fac acest topic.. ca sa ma ajutati sa invat cum pot muta tot serverul pe ZCMD.

Serverul meu e pe "strcmp" si vreau ca din toate comenziile sa ma ajutati cum il mut in ZCMD,stiu ca in loc de

if (strcmp(cmd, "/disco", true)==0)
vine
CMD:disco(playerid, params[])

oricum tot GM e diferit la comenzi "if (strcmp(cmd.. mai am si if(strcmp(cmdtext.. etc.. " ma rog,nu ma intereseaza chestia asta . vreau doar sa'mi explicati cum si unde modific si ce sa pun ca sa'mi mearga pe zcmd. am inteles ca e mai usor si ca micsoreaza GM.. nu intelegeam si nici acum nu inteleg..  ca totusi daca schimb tot gm la comenzi in loc de IF comanda... cu CMD:  e aceas linie nu tai nimic sau sa micsorez... oricum ..

as vrea doar sa vad ce pun sus #include <zcmd> parca si #include <sscanf2> asa.. si dupa ce sterg si ce pun.

Multumesc.

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Guest farse

stergi functia OnPlayerCommandText;

inlocuiesti if (strcmp(cmd, "/ cu CMD:

inlocuiesti ", true)==0) cu (playerid,params[])

pui la ~fiecare new idx; (la alea care cer si alti parametrii la comanda -/givecash /pm)

Link to comment
Share on other sites

Guest PlayON

stergi functia OnPlayerCommandText;

inlocuiesti if (strcmp(cmd, "/ cu CMD:

inlocuiesti ", true)==0) cu (playerid,params[])

pui la ~fiecare new idx; (la alea care cer si alti parametrii la comanda -/givecash /pm)

Exact asa i-am zis si eu pe mess!

Link to comment
Share on other sites

am facut toata asta.. si se blocheaza pawno :) ce fruumoooos :D

Ce fac cu asta? unde o pun

	new cmdtexterror[128];
	format(cmdtexterror, sizeof(cmdtexterror), "{F81414}SERVER ERROR: {FFFFFF}Comanda {6EF83C}%s {FFFFFF}nu exista, scrie {6EF83C}/help {FFFFFF}pentru mai multe informatii!", cmdtext);
	return SendClientMessage(playerid, COLOR_RED, cmdtexterror);
Ce fac cu asta? cum o modific
if(GetPVarInt(playerid,"InCarWar") && strcmp(cmdtext, "/kill", true) && strcmp(cmdtext, "/exitcarwar", true) != 0) return SendClientMessage(playerid,-1,"Nu poti iesi din 'car war', foloseste /kill sau /exitcarwar!");
si asta.
if(DM[playerid]&& strcmp(cmdtext, "/kill", true) && strcmp(cmdtext, "/exitdm", true) != 0) return SendClientMessage(playerid,COLOR_RED,"Nu poti iesi din acest DM! Foloseste /exitdm sau /kill!");
Am sters
OnPlayerCommandText;

si wow.. Se blocheaza pawno :X

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

am facut toata asta.. si se blocheaza pawno :) ce fruumoooos :D

Ce fac cu asta? unde o pun

	new cmdtexterror[128];
	format(cmdtexterror, sizeof(cmdtexterror), "{F81414}SERVER ERROR: {FFFFFF}Comanda {6EF83C}%s {FFFFFF}nu exista, scrie {6EF83C}/help {FFFFFF}pentru mai multe informatii!", cmdtext);
	return SendClientMessage(playerid, COLOR_RED, cmdtexterror);
Ce fac cu asta? cum o modific
if(GetPVarInt(playerid,"InCarWar") && strcmp(cmdtext, "/kill", true) && strcmp(cmdtext, "/exitcarwar", true) != 0) return SendClientMessage(playerid,-1,"Nu poti iesi din 'car war', foloseste /kill sau /exitcarwar!");
si asta.
if(DM[playerid]&& strcmp(cmdtext, "/kill", true) && strcmp(cmdtext, "/exitdm", true) != 0) return SendClientMessage(playerid,COLOR_RED,"Nu poti iesi din acest DM! Foloseste /exitdm sau /kill!");
Am sters
OnPlayerCommandText;

si wow.. Se blocheaza pawno :X

Cand bagi alea gandeste si tu putin.

Ia-ti cateva tutoriale:

http://www.sa-mp.ro/forum/index.php/topic,6398.0.html

http://forum.sa-mp.com/showthread.php?t=244841&highlight=ZCMD

http://forum.sa-mp.com/showthread.php?t=232129&highlight=ZCMD

http://forum.sa-mp.com/showthread.php?t=231496&highlight=ZCMD

http://forum.sa-mp.com/showthread.php?t=206237&highlight=ZCMD

Foloseste butonul Search. Si nu e vina noastra ca nu intelegi tu tutorialele. Invata sa gandesti cand scriptezi.

EDIT: Nu mai face pe interesantul:

si wow.. Se blocheaza pawno :X
Link to comment
Share on other sites

Guest PlayON

L-am insultat pe stuntman ca un bou ce sunt, acum tot el m-a ajutat =))

Topic solved!

Pai te enervezi prea tare, omu nu e ca si cum ar sta sa te ajute la fiecare detaliu, ti-a dat un tutorial, tu trebuie sa te iei dupa el.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.