"USAGE:" For commands
#4

Quote:
Originally Posted by Goldino
Посмотреть сообщение
Hey guys, I'm making some commands for my server. I was wondering how you can add a "USAGE:" When someone does the command in the wrong way! For example. If someone just does /me, it should say "USAGE: /me <text>. I hope you can help me!
easy, if you are using ****** sscanf plugin then you can simply put a line like this
pawn Код:
new text[128]
if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,0xE6E61AC8,"Usage /me <atext>");
you can read here for more info https://sampforum.blast.hk/showthread.php?tid=120356

or you can do
pawn Код:
if(isnull(params)) return SendClientMessage(playerid,0xE6E61AC8,"Usage /me <atext>");
Reply


Messages In This Thread
"USAGE:" For commands - by Goldino - 26.01.2013, 10:22
Re: "USAGE:" For commands - by IgrexolonO - 26.01.2013, 10:26
Re: "USAGE:" For commands - by CoDeZ - 26.01.2013, 10:28
Re: "USAGE:" For commands - by Jewell - 26.01.2013, 10:39
Re: "USAGE:" For commands - by Mean - 26.01.2013, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)