Changing Text
#1

Im Using Dcmd, i was wondering in some servers i see that it is possiable to change the "Server: Unknown Command " Thing, Can someone Show me How? Thanks.. BTW i would prefer to change it to a Simple MSGBOX.
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //your commands...
    return SendClientMessage(playerid, color, "your text");
}
for msg box just add "ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Wrong Command", "Text", "Ok", "Cancel"); intead of the Send ClientMessage
Reply
#3

So, Instead of Return 1; i do that?
Reply
#4

yap
however the code for "Server: unkown command" is return 0; return 1; should be used in each command or to show nothing
Reply
#5

Quote:
Originally Posted by Porsche911
Посмотреть сообщение
So, Instead of Return 1; i do that?
Yes, If It works I don't know, I've never tried It but It looks like it should.
Reply
#6

it works...
I'm using it for my server, too...
Reply
#7

Thank You.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)