SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 16/03/2011, 10:23 PM   #1
bogdan123
Big Clucker
 
Join Date: Feb 2011
Posts: 57
Reputation: 0
Default afk system si un prox detector

salut ,

1.folosesc acest mod pentru a detecta playeri afk : http://forum.sa-mp.com/showthread.ph...=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

Code:
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

Code:
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
bogdan123 is offline   Reply With Quote
Old 17/03/2011, 12:45 PM   #2
SkizzoTrick
High-roller
 
SkizzoTrick's Avatar
 
Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,884
Reputation: 37
Default Re: afk system si un prox detector

Quote:
Originally Posted by bogdan123 View Post
salut ,

1.folosesc acest mod pentru a detecta playeri afk : http://forum.sa-mp.com/showthread.ph...=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

Code:
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

Code:
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
Ai pus deja proxdetector si nu il stii folosi?Sau vrei proxdetectoru?
Poti sa faci un "fel" de proxdetector direct:
pawn Code:
public countgo()
{
   new Float:X, Float:Y, Float:Z;
   for(new i; i < MAX_PLAYERS; i++)
   {
   if(IsPlayerInRangeOfPoint(i,5.0,coordx,coordy,coordz))//Aici pune coordonatele punctului unde ar trebui sa fie numaratoarea si schimba radiousu in functie de preferintele tale :)
   {
   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);
   }
   }
}

Cand intra in Pickup?
Hmm,ai pus killtimeru?
Si de fiecare data se intampla?Sau ai patit numai odata?
__________________
Free accounts for XBOX Live, PS, Steam and others!
https://getyourfreeaccount.com
SkizzoTrick is offline   Reply With Quote
Old 17/03/2011, 09:02 PM   #3
bogdan123
Big Clucker
 
Join Date: Feb 2011
Posts: 57
Reputation: 0
Default Re: afk system si un prox detector

am reusit cu , count

la chestia cu afk sa intamplat de multe ori si iam pus si kill timer... uite cum e exact toata

Code:
public OnPlayerPause(playerid)
{
	AFKtimer = SetTimerEx("AFK", 120000, 0, "i", playerid);
	return 1;
}

public OnPlayerUnPause(playerid)
{
	KillTimer(AFKtimer);
    return 1;
}


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;
}
bogdan123 is offline   Reply With Quote
Old 17/03/2011, 09:14 PM   #4
SkizzoTrick
High-roller
 
SkizzoTrick's Avatar
 
Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,884
Reputation: 37
Default Re: afk system si un prox detector

Incearca asta:

pawn Code:
public OnPlayerPause(playerid)
{
    if(WantedLevel[playerid] > 0)
    {
    AFKtimer = SetTimerEx("AFK", 120000, 0, "i", playerid);
    }
     return 1;
}

public OnPlayerUnPause(playerid)
{
    KillTimer(AFKtimer);
    return 1;
}


public AFK(playerid)
{
    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;
}
__________________
Free accounts for XBOX Live, PS, Steam and others!
https://getyourfreeaccount.com
SkizzoTrick is offline   Reply With Quote
Old 18/03/2011, 10:50 AM   #5
bogdan123
Big Clucker
 
Join Date: Feb 2011
Posts: 57
Reputation: 0
Default Re: afk system si un prox detector

tot asa face...
bogdan123 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] Army Ship By [ProX]BlueFire [ProX]BlueFire Maps 7 07/03/2011 05:44 AM
Does this work same as prox detector? Torran Help Archive 3 25/02/2010 02:36 PM
Prox Detector SlashPT Help Archive 3 22/01/2010 08:12 PM
Bug detector lithuania154 Client Support 2 15/07/2009 08:00 PM


All times are GMT. The time now is 09:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.