Chat use
#1

How to make to player can use chat only every 5 seconds
Reply
#2

PHP код:
new antispam[MAX_PLAYERS];
//OnPlayerConnect
antispam[playerid] = GetTickCount();
//OnPlayerText
if(GetTickCount() - antispam[playerid] < 5000)return SendClientMessage(playerid,-1,"You spam!"),0;
antispam[playerid] = GetTickCount(); 
That's it
Reply
#3

thanks + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)