Quote:
Originally Posted by leonardo1434
This will just block the player to chat/cmds for 3 seconds.
pawn Code:
public OnPlayerText(playerid, text[]) { new lol = GetTickCount(); if(GetTickCount() - lol < 3000) { SendClientMessage(playerid,-1,"You will have to wait 3 seconds to write/type any cmd again!"); } return 1; }
By the way, You're probably using a loop inside your teleport command, So better you remove it.
|
I can type every seconds and it always saying You will have to wait 3 seconds to write/type any cmd again!
What you mean by this You're probably using a loop inside your teleport command?