How can I block flood ?
#1

When player get banned he can flood the server like this -



How can I block it ?


Thank you alot !
Reply
#2

Without banning code we can't help you.
Reply
#3

it's the code when player exit from the server not the banning code ..

PHP код:
new pName[MAX_PLAYER_NAME];
new 
string[128];
GetPlayerName(playeridpNamesizeof(pName));
    switch(
reason)
    {
        case 
0format(stringsizeof(string), "(Crash) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)"pNameplayerid);
        case 
1format(stringsizeof(string), "(Leaving) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)"pNameplayerid);
        case 
2format(stringsizeof(string), "(Kicked/Banned) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)"pNameplayerid);
    }
    
scmToAll(redstring); 
Reply
#4

Can you show us your scmToAll?
Reply
#5

can you show what do scmToAll() ? This is not part of SA-MP include.
// [ABK]Antonio was faster..
Reply
#6

PHP код:
forward scmToAll(colormessage[]);
public 
scmToAll(colormessage[])
{
  for(new 
ii<= MAX_PLAYERSi++)
  {
    if(
IsPlayerConnected(i))
     {
    if(
PlayerConnect[i] == && KSawn[CloseChat] == 0)
        {
            
SendClientMessage(i,colormessage);
        }
    }
  }
 return 
1;

Reply
#7

pawn Код:
stock SCMToAll(colour, string[])
{
         SendClientMessageToAll(colour, string);
         Return 1;
}
^^ Untested
Reply
#8

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
pawn Код:
stock SCMToAll(colour, string[])
{
         SendClientMessageToAll(colour, string);
         Return 1;
}
^^ Untested
what? O.O man the code is wrong and how does it help me? :X
Reply
#9

jump
Reply
#10

Is this only place where it get multilines?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)