adytza
-
Posts
25 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by adytza
-
-
am si eu un fs dupa ce stai 30 min afk sa primesti kick merge bine doar ca nu apare numele lu ala care primeste kick
[pawn]
#include <a_samp>
#define FILTERSCRIPT
#define AFKTime 30 //Cate minute poate fi AFK
#define ShowTime 1 //Activeaza / Dezactiveaza un mesaj trimis jucatorului care a primit kick (0 = nu / 1 = da)
#define Public 1 //Activeaza / Dezactiveaza mesajul care este trimis tuturor (0 = nu / 1 = da)
/*--------------------------NOTHING BELOW THIS POINT NEEDS TO BE CHANGED--------------------------*/
public OnFilterScriptInit()
{
SetTimer("AFKKicker", 60000, 1);
return 1;
}
forward AFKKicker();
new Float:PPos[MAX_PLAYERS][3];
new AFKMins[MAX_PLAYERS];
new show = ShowTime;
new pub = Public;
public OnPlayerConnect(playerid)
{
PPos[playerid][0] = 0;
PPos[playerid][1] = 0;
PPos[playerid][2] = 0;
AFKMins[playerid] = 0;
}
public AFKKicker()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(PPos[1] == 0)
{
GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);
return 1;
}
new Float:x,Float:y,Float:z;
GetPlayerPos(i,x,y,z);
if(x == PPos[0] && y == PPos[1] && z == PPos[2])
{
AFKMins++;
if(AFKMins >= AFKTime)
{
if(show == 1)
{
new string[128];
SendClientMessage(i, 0xAA3333AA," You was kick by AdmBot, reason: AFK longer than 30 minutes");
SendClientMessage(i,0xAA3333AA,string);
}
else
{
SendClientMessage(i, 0xAA3333AA," You was Away From Keyboard(AFK) for too long");
}
Kick(i);
if(pub == 1)
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), " %s was kicked by AdmBot, reason: AFK longer than 30 minutes",name);
SendClientMessageToAll(0xAA3333AA,string);
}
}
}
}
return 1;
}
[/pawn]
apare doar asta was kicked by AdmBot, reason: AFK longer than 30 minutes vreau sa apara si cine a luat kick
-
nu porneste serveru
-
-
am facut gangzone pentru war sa sclipeasca pe timpu warului merge , dar dupa ce mori numai sclipeste
-
Am facut asta , acum cand compilez junkbuster.pwn imi da warningul acesta : warning 209: function "JB_sscanf" should return a value
-
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3124) : error 017: undefined symbol "GetPlayerSurfingObjectID"
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3126) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3427) : error 017: undefined symbol "GetPlayerSurfingObjectID"
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3468) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(5057) : error 017: undefined symbol "GetVehicleDistanceFromPoint"
C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(5062) : error 017: undefined symbol "GetVehicleDistanceFromPoint"
-
am cerut ajutor pentru uitare parola ma omule nu stiu ca ce te bagi
-
Cum pot sa fac cand intru la scriptfiles/users sa vad la Key= parola care o are jucatorul
-
Deci vreau sa stiu cum pot sa pun sa dea bani de pe wanted la PD/FBI/NG doar daca sunt langa cei cu wanted cand ii omoara
Am incercat sa fac si acum numai ii baga nici la jail nici numai da bani
-
incerc sa te ajut cum m-au ajutat si alti pe mine
[pawn]if(strcmp(cmd, "/blacklist", true) == 0 || strcmp(cmd, "/bl", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /blacklist [playerid/PartOfName] [time(hours)]");
SendClientMessage(playerid, COLOR_GRAD2, "O Sapt: 168 de ore");
SendClientMessage(playerid, COLOR_GRAD2, "Doua Sapt: 336 de ore");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You Black Listed player %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* You were Black Listed by Admin %s.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
PlayerInfo[playa][pBlackList] = 1;
PlayerInfo[playa][pBLTime] = money*3600;
format(string, sizeof(string), "You are Black Listed for %d hours.", money);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat sa folosesti aceasta comanda");
}
}
return 1;
}[/pawn]
[pawn]if(strcmp(cmd, "/blacklisted", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLeader] >= 1)
{
new count = 0;
SendClientMessage(playerid, COLOR_YELLOW, "* Players BlackList:");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pBLTime] > 0)
{
new time = PlayerInfo[playerid][pMuteTime]/60+1;
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "[%d]%s - BlackList For: [%d] Ore", i,giveplayer, time);
SendClientMessage(playerid, COLOR_GRAD2, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "* Currently no players blacklisted.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " you are not authorized to use that command !");
}
}//not connected
return 1;
}[/pawn]
[pawn]if(strcmp(cmd, "/bltime", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pBLTime] > 0)
{
new hours = PlayerInfo[playerid][pBLTime]/3600+1;
new minutes = PlayerInfo[playerid][pBLTime]/60+1;
format(string, sizeof(string), "Your Black List will expire in %d hours (%d minutes).", hours, minutes);
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
}
}
return 1;
}[/pawn]
Am avut si eu pe server dar am scos pentru ca mai bine e sa faci un topic pe forum
-
dati tc . ca asta si`l baga pentru 2 euro asta e forum pentru ajutor cine vrea sa ajute , vrei sa faci bani ca esti fomist dute in alta parte sa scriptezi pentru $$ mai zic dar asa
P.s : rezolv singur Fernando
-
am aflat ca e de la junkbuster dar nu am cum sa il scot
-
acceasi problema am si eu o solutie ?!
-
De cateva zile niste bolnavi se joaca cu un program anume :shocked: imi pica serveru , este hostat
apar boti cateodata si cateodata pica direct trebuie sa il aprind specific ca celelalte servere de la firma la care am nu pica
-
am rezolvat m-a ajutat FarSe t.c
-
am incercat si tot asa il pune pe cel cu id 0 , help ?
-
nu cer comanda script cer ajutor numai te baga daca nu intelegi ce vreau sa stiu
-
Cum pot sa fac comanda /scorwar sa mearga doar cand incepe war-ul deci cand se da comanda /acceptwar sa mearga /scorwar pana atunci sa apara textul - Nu este momentan war
-
cineva ?
-
-
rezolvat . era dintr-un fs
-
nu am anti-money cheat in gm
junkbuster-u e dezactivat
si am facut si ce ai zis la 2 tot asa face up - stie cineva ce sa fac ?
-
crezi ca m-ai postam pe forum daca nu faceam asta am dezactivat l-am si sters tot asa face
-
Am instalat 0.3d cand am dat connect a ramas blocat l-am reinstalat a mers am iesit din el am intrat iar si iar mi se blocheaza cand dau connect ramane blocat daca bag iar 0.3c imi merge
Problema AFK fs
in Arhivă probleme
Posted
[pawn]
#include <a_samp>
#define FILTERSCRIPT
#define AFKTime 30 //Cate minute poate fi AFK
#define ShowTime 1 //Activeaza / Dezactiveaza un mesaj trimis jucatorului care a primit kick (0 = nu / 1 = da)
#define Public 1 //Activeaza / Dezactiveaza mesajul care este trimis tuturor (0 = nu / 1 = da)
/*--------------------------NOTHING BELOW THIS POINT NEEDS TO BE CHANGED--------------------------*/
public OnFilterScriptInit()
{
SetTimer("AFKKicker", 60000, 1);
return 1;
}
forward AFKKicker();
new Float:PPos[MAX_PLAYERS][3];
new AFKMins[MAX_PLAYERS];
new show = ShowTime;
new pub = Public;
public OnPlayerConnect(playerid)
{
PPos[playerid][0] = 0;
PPos[playerid][1] = 0;
PPos[playerid][2] = 0;
AFKMins[playerid] = 0;
}
public AFKKicker()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(PPos[1] == 0)
{
GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);
return 1;
}
new Float:x,Float:y,Float:z;
GetPlayerPos(i,x,y,z);
if(x == PPos[0] && y == PPos[1] && z == PPos[2])
{
AFKMins++;
if(AFKMins >= AFKTime)
{
if(show == 1)
{
new string[128];
SendClientMessage(i, 0xAA3333AA," You was kick by AdmBot, reason: AFK longer than 30 minutes");
SendClientMessage(i,0xAA3333AA,string);
}
else
{
SendClientMessage(i, 0xAA3333AA," You was Away From Keyboard(AFK) for too long");
}
Kick(i);
if(pub == 1)
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), " %s was kicked by AdmBot, reason: AFK longer than 30 minutes",name);
SendClientMessageToAll(0xAA3333AA,string);
}
}
}
}
return 1;
}
[/pawn]
am si eu un fs dupa ce stai 30 min afk sa primesti kick , stau afk mai mult de 30 min si tot nu primesc kick