Detaljan opis problema: Kad kickam igraca ispise poruku svima "Ime_Prezime je kickan od Ime_Prezime, razlog: razlog. To valja, no igrac kojeg sam kicko uopce ne dobije poruku nego samo pise Server closed the connection. Trazio sam tu po forumu teme vezane za to no nista sto sam nasao nije mi pomoglo.
Dio skripte:
CMD:kick(playerid, params[])
{
#pragma unused params
if (PlayerInfo >= 3 || PlayerInfo >= 1)
{
new string, id, reason;
if(sscanf(params, "us", id, reason)) return SendClientMessage(playerid, -1,""COL_GRAY"Koristi:/kick [ID/Dio imena] ");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1,""COL_GRAY"Igrac nije onlline!");
format(string,sizeof(string),""COL_RED" %s je kickao igraca %s, razlog: %s",GetPlayerNameEx(playerid),GetPlayerNameEx(id),reason);
SendClientMessageToAll(-1, string);
format(string,sizeof(string),""COL_RED"Kickan si od %s, razlog: %s!",GetPlayerNameEx(playerid),reason);
SendClientMessage(id,-1,string);
freeze = SetTimerEx("KonektKick", 1000, 0, "d", id);
Kick(id);
}
else
{
SendClientMessage(playerid,-1,""COL_GRAY"Nisi Admin/Gamemaster!");
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno)://