09.10.2016, 17:24
How can I fix this:
I added this:
in my gamemode which uses zcmd. But I have filterscripts which don't use zcmd but have commands. So the GM reads the commands as performed, but filterscripts send "That command does not exist etc." or even "You are not authorized to use this command" even if i type /ilovechicken. I have removed "that command does not etc etc and you are not authorized to use this command" from all the filterscripts but I still have this problem and I don't know if it can be fixed or not... I'm also a beginner in scripting and I don't know how to convert strcmp to zcmd and move all those filterscripts into my single gamemode. Someone help...
I added this:
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) SendClientMessage(playerid, COLORWHITE, "That command does not exist. Use {FFFF00}/help{FFFFFF} to see a list of available commands."); return 1; }