how to make a new cmd
#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


Messages In This Thread
how to make a new cmd - by Abraham2nd - 16.07.2010, 08:34
Re: how to make a new cmd - by Lorenc_ - 16.07.2010, 08:40
Re: how to make a new cmd - by Abraham2nd - 16.07.2010, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)