Jump to content
  • 0

afk system


bogdan123

Question

salut ,

1.folosesc acest mod pentru a detecta playeri afk : http://forum.sa-mp.com/showthread.php?t=186129&highlight=OnPlayerPause

am facut cum zice Mean aici: http://forum.sa-mp.com/showthread.php?t=205772

numai ca eu nu vreau sa dea kick decat playerilor cu wanted

public AFK(playerid)
{
	if(IsPlayerPaused(playerid) && WantedLevel[playerid] >= 1)
    	{
		new sendername[MAX_PLAYER_NAME];
		GetPlayerName(playerid, sendername, sizeof(sendername));
		Kick(playerid);
		new string[256];
		format(string, sizeof(string), "%s a primit kick ca a lasat AFK cu wanted!", sendername);
		SendClientMessageToAll(COLOR_LIGHTRED, string);
		KickLog(string);
    	}
	return 1;
}
aici intervine o problema , playeru primeste kick cand intra intr-un "i" sau cand scrie ceva in chat , cum pot face numai cand apasa esc sau alt tab sa primeasca kick? 2. un sistem count
public count2()
{
   new Float:X, Float:Y, Float:Z;
   for(new i; i < MAX_PLAYERS; i++) {
   GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 2 ~g~-",1000,3);
   GetPlayerPos(i, X,Y,Z);
   }
}
public count1()
{
   new Float:X, Float:Y, Float:Z;
   for(new i; i < MAX_PLAYERS; i++) {
   GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 1 ~g~-",1000,3);
   GetPlayerPos(i, X,Y,Z);
   }
}
public countgo()
{
   new Float:X, Float:Y, Float:Z;
   for(new i; i < MAX_PLAYERS; i++) {
   GetPlayerPos(i, X,Y,Z);
   GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~]~g~-~g~START~g~-~y~]~g~-",1000,3);
   PlayerPlaySound(i,1057,X,Y,Z);
   }
}
public stop()
{
   auts = false;
}

cum ii pot pune un proxdetector? am incercat eu dar nu merge

multumesc

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.