Jump to content

Question

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Ai postat la sectiunea gresita nu se cer scripturi,

La inceputul gm-ului creezi o variabila new SpamChat[MAX_PLAYERS];

la OnPlayerText adaugi asa

if(SpamChat[playerid]>3)
    {
        SCM(playerid,COLOR_LIGHTRED,"AntiSpam: nu folosi chatul atat de des!");
        return 0;
    }

SpamChat[playerid]++;

 

si la un timer de o secunda adaugi asta

if(SpamChat[playerid]>0)

SpamChat[playerid]--;

Este cel mai simplu si usor sistem, il puteai face singur cu putina logica

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.