Hallo,
ich habe mich nun entschlossen mit zcmd weiterzuarbeiten.
Nun, habe ich im Englischen Forum folgendes gelesen, verstehe es aber nicht ganz.
ZitatAlles anzeigenImportant: Since v0.3 OnPlayerCommandText cannot be used anymore (also ZCMD_NO_CALLBACK option has been removed), but there are two new callbacks instead:
pawn Code:
OnPlayerCommandReceived(playerid, cmdtext[])
This one is called when someone sends a command. If you return 0 here, the command won't be performed.
pawn Code:
OnPlayerCommandPerformed(playerid, cmdtext[], success)
And this one gets called after command execution, here if you do "return 0" the player will see standard "Unknown command" message. The "success" parameter is equal to value returned by command function returns (if it doesn't exist success will be 0).
Note that it's not necessary to add these callbacks to your script if you don't use them.
Habe ich das richtig verstanden, das zcmd nicht mehr unter OnPlayerCommand Text funktioniert?
Wenn ihr noch eine andere Art für cmds (dcmd, zcmd, ocmd, bcmd, xcmd...) habt, dann postet sie mal rein.