[POMOC] AFK

Započeo limpo
•7. Apr. 2013.• Zaključano
350
pregleda
5
postova
limpo
3
Wheel Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
7. Apr. 2013.
Skripta koju koristim:E.xplosion
Detaljan opis problema😛a koristin e.xplosion mod a na njemu kada igrac ni je tu npr ode na fb a ukljucen mu je samp ,uopste ga ne kicka zbog afk nakon nekog vremena nego moze ostati koliko hoce,i tako skupljaju sate igranja,zelio bi da napravim da ga kicka ako nije tu 10 minuta ...
Dio skripte:Nezz sta da dadnem ,trazite
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
ladolez
5
Underboss
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
7. Apr. 2013.
mislim da mozes pomocu tajmera namestis da kad ode afk ukljuci se timer na 10 minuta i kad istekne vreme onda kick
CkusaColeCM
4
Shot Caller
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
7. Apr. 2013.
Evo ti
forward IdleKick();
public IdleKick()
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, PlayerPos, PlayerPos, PlayerPos);
if(PlayerPos == PlayerPos && PlayerPos == PlayerPos && PlayerPos == PlayerPos)
{
new plname;
new string;
GetPlayerName(i, plname, sizeof(plname));
format(string, sizeof(string), "AdmCmd: %s je kikan zbog: AFK", plname);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(i);
}
PlayerPos = PlayerPos;
PlayerPos = PlayerPos;
PlayerPos = PlayerPos;
}
}
}
}

// na vrh
new idletimer;

// pod gamemodeexitfunc

KillTimer(idletimer);

// i pod ongamemodeinit

idletimer = SetTimer("IdleKick", 600000, 1);
limpo
3
Wheel Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
7. Apr. 2013.
CkusaColeCM wrote on April 7, 2013, 9:51 am:
Evo ti
forward IdleKick();
public IdleKick()
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, PlayerPos, PlayerPos, PlayerPos);
if(PlayerPos == PlayerPos && PlayerPos == PlayerPos && PlayerPos == PlayerPos)
{
new plname;
new string;
GetPlayerName(i, plname, sizeof(plname));
format(string, sizeof(string), "AdmCmd: %s je kikan zbog: AFK", plname);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(i);
}
PlayerPos = PlayerPos;
PlayerPos = PlayerPos;
PlayerPos = PlayerPos;
}
}
}
}

// na vrh
new idletimer;

// pod gamemodeexitfunc

KillTimer(idletimer);

// i pod ongamemodeinit

idletimer = SetTimer("IdleKick", 600000, 1);

Hvala,sredjeno
CkusaColeCM
4
Shot Caller
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
7. Apr. 2013.
Nista 😉

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha