#1

it kicks the player but doesnt show him why and also it shows the other players but spams them how i make it show up only once, also it says Has been kicked....... and doesnt say the players name. can someone help sorry

Quote:

if(gPlayerLogTries[playerid] == 3)
{
new string[128];
format(string, sizeof(string), "%s has been kicked for 3 incorrect password attemps.");
SendClientMessageToAll(0xF81414, string);
Kick(playerid);

Reply
#2

this should work

pawn Код:
if(gPlayerLogTries[playerid] == 3)
{
new string[128];
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked for 3 incorrect password attemps.",name);
SendClientMessageToAll(0xF81414, string);
Kick(playerid);
Reply
#3

The name bit works but the spamming still happens
Reply
#4

change this
pawn Код:
new string[256];
Reply
#5

Still does it but less then before
Reply
#6

pawn Код:
if(gPlayerLogTries[playerid] == 3)
{
new string[128];
new name[MAX_PLAYER_NAME+1];
gPlayerLogTries[playerid] =0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked for 3 incorrect password attemps.",name);
SendClientMessageToAll(0xF81414, string);
SetTimerEx("KickEx", 500, false, "i", playerid);
As for the not showing text problem
pawn Код:
forward KickEx(playerid);
public KickEx(playerid)
{
 Kick(playerid);
}
Reply
#7

Its weird still doesnt show the text to the player the spamming stop
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)