how to make a new cmd
#1

Ok I wanted to know how to make a new cmd that only DJ sees when others type it , its for my radio on Teamspeak.
like /request - to request a song
/request [song name] [artist]
and only the admins see
Reply
#2

Maybe use a report command and change its config?
Reply
#3

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Maybe use a report command and change its config?
hmm good how about this:
if(strcmp(cmd, "/request", true) == 0 || strcmp(cmd, "/req", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(JustReported[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "** Wait 1 minute after sending a next request! ");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/req)uest[song name] [Artist]");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)