Please wait 1 second before submmiting the command again!
#1

Hello!

Can someone give me some plugin/filterscript for this,you have to wait 1 sec before typing another command after the command you typed before in chat:



Sorry for bad english.
Reply
#2

Hello there. Try reading this topic and see if you can find an answer to your question. https://sampforum.blast.hk/showthread.php?tid=354077
Reply
#3

Here is what u want, just click me
Reply
#4

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
This is for Vehicle Speed, not chat spam.
Reply
#5

Quote:
Originally Posted by RedCountyRP
Посмотреть сообщение
Hello there. Try reading this topic and see if you can find an answer to your question. https://sampforum.blast.hk/showthread.php?tid=354077
Thats great,but look,here is my big proble.I am totally newbie at scripting and all of this stuff,I am just planning to open new server.So if someone would put this in .pwn file and if someone could tell me where to put this .pwn file,to filterscripts file,OR?

Thanks in advance !
Reply
#6

So,can anyone help me?Read my previous post.
Reply
#7

Do you use ZCMD ?
Reply
#8

Try this, I haven't used PAWN in ages though. I think this should work if you use ZCMD.

pawn Код:
//at the top.
new canUse[playerid] == true;


//Somewhere in your script, under your "CMD:"s eg.
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(canUse[playerid] == false)
    {
        SendClientMessage(playerid, -1, "Please wait a second before submitting another command!");
        return 0;
    }
    else
    {
         canUse[playerid] = false;
         SetTimerEx("commandTimer", 1000, false, "d", playerid);
    }
    return 1;
}


//Somewhere in the script, bottom eg.
forward commandTimer(playerid);
public commandTimer(playerid)
{
    canUse[playerid] = true;
    return 1;
}
Reply
#9

Quote:
Originally Posted by BigGroter
Посмотреть сообщение
Try this, I haven't used PAWN in ages though. I think this should work if you use ZCMD.

pawn Код:
//at the top.
new canUse[playerid] == true;


//Somewhere in your script, under your "CMD:"s eg.
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(canUse[playerid] == false)
    {
        SendClientMessage(playerid, -1, "Please wait a second before submitting another command!");
        return 0;
    }
    else
    {
         canUse[playerid] = false;
         SetTimerEx("commandTimer", 1000, false, "d", playerid);
    }
    return 1;
}


//Somewhere in the script, bottom eg.
forward commandTimer(playerid);
public commandTimer(playerid)
{
    canUse[playerid] = true;
    return 1;
}
Perhaps you should explain the code as the original poster stated they were new to scripting? Handing a newbie a block or code only encourages them to steal the code and have others do it for them.
Reply
#10

He stated that he just wanted to copy and paste. His server is going to be dead in a couple of days anyway, hopefully someone else can benefit from the code. If you want to explain the code, feel free to, I can't be arsed at the moment.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)