22.02.2012, 19:55
How can I block flood ?
22.02.2012, 19:56
Without banning code we can't help you.
22.02.2012, 19:58
it's the code when player exit from the server not the banning code ..
PHP код:
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "(Crash) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
case 1: format(string, sizeof(string), "(Leaving) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
case 2: format(string, sizeof(string), "(Kicked/Banned) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
}
scmToAll(red, string);
22.02.2012, 20:03
Can you show us your scmToAll?
22.02.2012, 20:03
can you show what do scmToAll() ? This is not part of SA-MP include.
// [ABK]Antonio was faster..
// [ABK]Antonio was faster..
22.02.2012, 20:12
PHP код:
forward scmToAll(color, message[]);
public scmToAll(color, message[])
{
for(new i; i<= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerConnect[i] == 0 && KSawn[CloseChat] == 0)
{
SendClientMessage(i,color, message);
}
}
}
return 1;
}
22.02.2012, 20:15
pawn Код:
stock SCMToAll(colour, string[])
{
SendClientMessageToAll(colour, string);
Return 1;
}
22.02.2012, 20:21
22.02.2012, 22:09
jump
22.02.2012, 22:32
Is this only place where it get multilines?
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)