Wait 1 Second Before Typing Other Message
#1

Hello, how can i make something like if you type something you have to wait 1-2 seconds before sending a message again?
Reply
#2

Hello friend, this is the most efficient script:

pawn Код:
public OnPlayerText(playerid, text[])
{
       if(gettime() - GetPVarInt(playerid,"PlayerLastText") < 2)
       {
         GameTextForPlayer(playerid, "~r~Wait ~w~1 ~r~second!", 2000, 3);
         return 0;
       }
       SetPVarInt(playerid,"PlayerLastText",gettime());
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)