Jump to content

Question

Posted

Re all.Ma ajutati si pe mine cu ceva?

As vrea sa fac un timer adika cand un player face spamuri  sa-i apara un text unde scrie ca nu mai poate sa scrie 4 sec sau ceva de genu asta.

Daca ma puteti ajuta vas fi recunoscator.

200r807.gif

3 answers to this question

Recommended Posts

Posted

[pawn]static

chattime[MAX_PLAYERS],

chat[MAX_PLAYERS][400],

}

public OnPlayerText(playerid, text[])

{

if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))

{

    SendClientMessage(playerid,0x9900FFAA, "Asteapta 4 secunde");

    return 0;

}

if(!IsPlayerAdmin(playerid))

{

if(strlen(text) == strlen(chat[playerid]) && !strcmp(chat[playerid], text,  false))

{

SendClientMessage(playerid, 0x9900FFAA, "Te rog nu te repeta");

format(chat[playerid], 400, "%s", text);

    return 0;

}

    }[/pawn]

Nu stiu daca o sati mearga ca trb mai multe dar BFT

Posted

[pawn]static

chattime[MAX_PLAYERS],

chat[MAX_PLAYERS][400],

}

public OnPlayerText(playerid, text[])

{

if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))

{

    SendClientMessage(playerid,0x9900FFAA, "Asteapta 4 secunde");

Dap, imi da erori. :((

    return 0;

}

if(!IsPlayerAdmin(playerid))

{

if(strlen(text) == strlen(chat[playerid]) && !strcmp(chat[playerid], text,  false))

{

SendClientMessage(playerid, 0x9900FFAA, "Te rog nu te repeta");

format(chat[playerid], 400, "%s", text);

    return 0;

}

    }[/pawn]

Nu stiu daca o sati mearga ca trb mai multe dar BFT

Dap,imi da erori. :(( :((

200r807.gif
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.