Jump to content
  • 0

Timer la ban/warn (30 min)


Question

Posted

Salut , intrebarea mea este : Cum pot sa pun un timer pe comanda /ban , /warn ?

De exemplu. /ban test TEST !

Iar cand incerci /ban HHH TEST!

Sa iti apara " A mai fost dat un ban , asteapta 30 de secunde"

Daca se poate si la fel pentru warn. :)

1 answer to this question

Recommended Posts

Posted

[pawn]

//la inceput de gm

new PlayerBanned[MAX_PLAYERS];

forward ResetBan(playerid);

//la inceput de comanda (/ban)

if(PlayerBanned[playerid] == -1)//report timer

{

            SendClientMessage(playerid,COLOR_RED,"Poti da /ban doar o data la 3 minute!");

            return 1;

}

//la comanda ban

PlayerBanned[playerid] = -1;

SetTimerEx("ResetBan", 180000, 0, "d", playerid);

//la sfarsit de gm

public ResetBan(playerid)

{

            PlayerBanned[playerid] = 0;

            return 1;

}

[/pawn]

Si la comanda /warn lafel.

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Guest
This topic is now closed to further replies.
×
×
  • 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.