|
|
|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Feb 2011
Posts: 57
Reputation: 0
|
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;
}
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;
}
multumesc |
|
|
|
|
|
#2 | |
|
Banned
![]() Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,880
Reputation: 37
|
Quote:
Poti sa faci un "fel" de proxdetector direct: pawn Code:
Cand intra in Pickup? Hmm,ai pus killtimeru? Si de fiecare data se intampla?Sau ai patit numai odata? |
|
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Feb 2011
Posts: 57
Reputation: 0
|
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;
}
|
|
|
|
|
|
#4 |
|
Banned
![]() Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,880
Reputation: 37
|
Incearca asta:
pawn Code:
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Feb 2011
Posts: 57
Reputation: 0
|
tot asa face...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Map] Army Ship By [ProX]BlueFire | [ProX]BlueFire | Maps | 7 | 07/03/2011 04:44 AM |
| Does this work same as prox detector? | Torran | Help Archive | 3 | 25/02/2010 01:36 PM |
| Prox Detector | SlashPT | Help Archive | 3 | 22/01/2010 07:12 PM |
| Bug detector | lithuania154 | Client Support | 2 | 15/07/2009 08:00 PM |