- 0
ONPLAYERCOMMANDTEXT [BUG]
-
Similar Content
-
- 7 replies
- 683 views
-
- 10 answers
- 3.299 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
ShadowFirenze.it
Salutare.
Am o intampinat o problema cu functia onplayercommandtext dupa ce am integrat un FS in onplayercommandtext.
Deci orice comanda as executa imi zice "Server Unknown command", am adaugat
new pos, funcname[32]; while(cmdtext[++pos] > ' ') { funcname[pos-1] = tolower(cmdtext[pos]); } strins(funcname, "cmd_", 0, sizeof(funcname)); while (cmdtext[pos] == ' ') pos++; if(!cmdtext[pos]) { return CallLocalFunction(funcname, "is", playerid, "\1"); }Sila sfarsit-ul functiei dupa ultima comanda, am adaugat codu asta ca sa functioneze niste comenzi "scriptate" in zcmd, merg si cele vechi doar ca imi da dupa cum am zis "Server Unknown command" si nu imi arata de exemplu USAGE: /ban [playerid/PartOfName] [reason] la comanda /ban.In schimb, comenzile adaugate si "scriptate" in zcmd merg.
1 answer to this question
Recommended Posts