xNoAir
-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by xNoAir
-
-
4 minutes ago, Krusher said:
Arata-mi callbackul care incarca datele la logare.
if(mysql_retrieve_row()) { mysql_fetch_field_row(result,"password"); format(PlayerInfo[playerid][pKey], 128, result); mysql_fetch_field_row(result,"Level"); PlayerInfo[playerid][pLevel] = strval( result ); mysql_fetch_field_row(result,"Admin"); PlayerInfo[playerid][pAdmin] = strval( result ); mysql_fetch_field_row(result,"Helper"); PlayerInfo[playerid][pHelper] = strval( result ); mysql_fetch_field_row(result,"Premium"); PlayerInfo[playerid][pPremiumAccount] = strval( result ); mysql_fetch_field_row(result,"ConnectedTime"); PlayerInfo[playerid][pConnectTime] = strval( result ); mysql_fetch_field_row(result,"Registered"); PlayerInfo[playerid][pReg] = strval( result ); mysql_fetch_field_row(result,"Sex"); PlayerInfo[playerid][pSex] = strval( result ); mysql_fetch_field_row(result,"Age"); PlayerInfo[playerid][pAge] = strval( result ); mysql_fetch_field_row(result,"Origin"); PlayerInfo[playerid][pOrigin] = strval( result ); mysql_fetch_field_row(result,"Muted"); PlayerInfo[playerid][pMuted] = strval( result ); mysql_fetch_field_row(result,"MuteTime"); PlayerInfo[playerid][pMuteTime] = strval( result ); mysql_fetch_field_row(result,"Respect"); PlayerInfo[playerid][pExp] = strval( result ); mysql_fetch_field_row(result,"Money"); PlayerInfo[playerid][pCash] = strval( result ); mysql_fetch_field_row(result,"Bank"); PlayerInfo[playerid][pAccount] = strval( result ); mysql_fetch_field_row(result,"Crimes"); PlayerInfo[playerid][pCrimes] = strval( result ); mysql_fetch_field_row(result,"Kills"); PlayerInfo[playerid][pKills] = strval( result ); mysql_fetch_field_row(result,"Deaths"); PlayerInfo[playerid][pDeaths] = strval( result ); mysql_fetch_field_row(result,"Arrested"); PlayerInfo[playerid][pArrested] = strval( result ); mysql_fetch_field_row(result,"WantedDeaths"); PlayerInfo[playerid][pWantedDeaths] = strval( result ); mysql_fetch_field_row(result,"Phonebook"); PlayerInfo[playerid][pPhoneBook] = strval( result ); mysql_fetch_field_row(result,"LottoNr"); PlayerInfo[playerid][pLottoNr] = strval( result ); mysql_fetch_field_row(result,"WantedLevel"); PlayerInfo[playerid][pWantedLevel] = strval( result ); mysql_fetch_field_row(result,"Fishes"); PlayerInfo[playerid][pFishes] = strval( result ); mysql_fetch_field_row(result,"RFishes"); PlayerInfo[playerid][pRFishes] = strval( result ); mysql_fetch_field_row(result,"Job"); PlayerInfo[playerid][pJob] = strval( result ); mysql_fetch_field_row(result,"Paycheck"); PlayerInfo[playerid][pPayCheck] = strval( result ); mysql_fetch_field_row(result,"HeadValue"); PlayerInfo[playerid][pHeadValue] = strval( result ); mysql_fetch_field_row(result,"Jailed"); PlayerInfo[playerid][pJailed] = strval( result ); mysql_fetch_field_row(result,"JailTime"); PlayerInfo[playerid][pJailTime] = strval( result ); mysql_fetch_field_row(result,"Materials"); PlayerInfo[playerid][pMats] = strval( result ); mysql_fetch_field_row(result,"Drugs"); PlayerInfo[playerid][pDrugs] = strval( result ); mysql_fetch_field_row(result,"Leader"); PlayerInfo[playerid][pLeader] = strval( result ); mysql_fetch_field_row(result,"Member"); PlayerInfo[playerid][pMember] = strval( result ); mysql_fetch_field_row(result,"Rank"); PlayerInfo[playerid][pRank] = strval( result ); mysql_fetch_field_row(result,"CChar"); PlayerInfo[playerid][pChar] = strval( result ); mysql_fetch_field_row(result,"FWarn"); PlayerInfo[playerid][pFACWarns] = strval( result ); mysql_fetch_field_row(result,"FPunish"); PlayerInfo[playerid][pFpunish] = strval( result ); mysql_fetch_field_row(result,"Acceptpoints"); PlayerInfo[playerid][pLawyer] = strval( result ); mysql_fetch_field_row(result,"SexSkill"); PlayerInfo[playerid][pSexSkill] = strval( result ); mysql_fetch_field_row(result,"LawSkill"); PlayerInfo[playerid][pLawSkill] = strval( result ); mysql_fetch_field_row(result,"MechSkill"); PlayerInfo[playerid][pMechSkill] = strval( result ); mysql_fetch_field_row(result,"NewsSkill"); PlayerInfo[playerid][pNewsSkill] = strval( result ); mysql_fetch_field_row(result,"DrugsSkill"); PlayerInfo[playerid][pDrugsSkill] = strval( result ); mysql_fetch_field_row(result,"MuncitorSkill"); PlayerInfo[playerid][pMuncitorSkill] = strval( result ); mysql_fetch_field_row(result,"CamiongiuSkill"); PlayerInfo[playerid][pCamiongiuSkill] = strval( result ); mysql_fetch_field_row(result,"FishSkill"); PlayerInfo[playerid][pFishSkill] = strval( result ); mysql_fetch_field_row(result,"MatSkill"); PlayerInfo[playerid][pMatSkill] = strval( result ); mysql_fetch_field_row(result,"RobSkill"); PlayerInfo[playerid][pRobSkill] = strval( result ); mysql_fetch_field_row(result,"pHealth"); PlayerInfo[playerid][pHealth] = floatstr( result ); mysql_fetch_field_row(result,"Inter"); PlayerInfo[playerid][pInt] = strval( result ); mysql_fetch_field_row(result,"Local"); PlayerInfo[playerid][pLocal] = strval( result ); mysql_fetch_field_row(result,"Team"); PlayerInfo[playerid][pTeam] = strval( result ); mysql_fetch_field_row(result,"Model"); PlayerInfo[playerid][pModel] = strval( result ); mysql_fetch_field_row(result,"PhoneNr"); PlayerInfo[playerid][pPnumber] = strval( result ); mysql_fetch_field_row(result,"House"); PlayerInfo[playerid][pPhousekey] = strval( result ); mysql_fetch_field_row(result,"Bizz"); PlayerInfo[playerid][pPbiskey] = strval( result ); mysql_fetch_field_row(result,"Radio"); PlayerInfo[playerid][pRadioCars] = strval( result ); mysql_fetch_field_row(result,"Pos_x"); PlayerInfo[playerid][pPos_x] = floatstr( result ); mysql_fetch_field_row(result,"Pos_y"); PlayerInfo[playerid][pPos_y] = floatstr( result ); mysql_fetch_field_row(result,"Pos_z"); PlayerInfo[playerid][pPos_z] = floatstr( result ); mysql_fetch_field_row(result,"Rob"); PlayerInfo[playerid][pRob] = strval( result ); mysql_fetch_field_row(result,"CarLicT"); PlayerInfo[playerid][pCarLicT] = strval( result ); mysql_fetch_field_row(result,"CarLic"); PlayerInfo[playerid][pCarLic] = strval( result ); mysql_fetch_field_row(result,"FlyLicT"); PlayerInfo[playerid][pFlyLicT] = strval( result ); mysql_fetch_field_row(result,"FlyLic"); PlayerInfo[playerid][pFlyLic] = strval( result ); mysql_fetch_field_row(result,"BoatLicT"); PlayerInfo[playerid][pBoatLicT] = strval( result ); mysql_fetch_field_row(result,"BoatLic"); PlayerInfo[playerid][pBoatLic] = strval( result ); mysql_fetch_field_row(result,"FishLicT"); PlayerInfo[playerid][pFishLicT] = strval( result ); mysql_fetch_field_row(result,"FishLic"); PlayerInfo[playerid][pFishLic] = strval( result ); mysql_fetch_field_row(result,"GunLicT"); PlayerInfo[playerid][pGunLicT] = strval( result ); mysql_fetch_field_row(result,"GunLic"); PlayerInfo[playerid][pGunLic] = strval( result ); mysql_fetch_field_row(result,"PayDay"); PlayerInfo[playerid][pPayDay] = strval( result ); mysql_fetch_field_row(result,"PayDayHad"); PlayerInfo[playerid][pPayDayHad] = strval( result ); mysql_fetch_field_row(result,"Tutorial"); PlayerInfo[playerid][pTut] = strval( result ); mysql_fetch_field_row(result,"Warnings"); PlayerInfo[playerid][pWarns] = strval( result ); mysql_fetch_field_row(result,"Rented"); PlayerInfo[playerid][pRented] = strval( result ); mysql_fetch_field_row(result,"Fuel"); PlayerInfo[playerid][pFuel] = strval( result ); mysql_fetch_field_row(result,"Married"); PlayerInfo[playerid][pMarried] = strval( result ); mysql_fetch_field_row(result,"MarriedTo"); strmid(PlayerInfo[playerid][pMarriedTo], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"WTalkie"); PlayerInfo[playerid][pWTalkie] = strval( result ); mysql_fetch_field_row(result,"Lighter"); PlayerInfo[playerid][pLighter] = strval( result ); mysql_fetch_field_row(result,"Cigarettes"); PlayerInfo[playerid][pCigarettes] = strval( result ); mysql_fetch_field_row(result,"Tow"); PlayerInfo[playerid][pTow] = strval( result ); mysql_fetch_field_row(result,"Email"); strmid(PlayerInfo[playerid][pEmail], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"RegisterDate"); strmid(PlayerInfo[playerid][pRegistredDate], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Banned"); PlayerInfo[playerid][pBanned] = strval( result ); mysql_fetch_field_row(result,"ClanTag"); strmid(PlayerInfo[playerid][pClanTag], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Clan"); PlayerInfo[playerid][pClan] = strval( result ); mysql_fetch_field_row(result,"Radio2"); PlayerInfo[playerid][pRadio] = strval( result ); mysql_fetch_field_row(result,"HitT"); PlayerInfo[playerid][pHitT] = strval( result ); mysql_fetch_field_row(result,"CRank"); PlayerInfo[playerid][pCRank] = strval( result ); mysql_fetch_field_row(result,"Phone"); PlayerInfo[playerid][pPhone] = strval( result ); mysql_fetch_field_row(result,"id"); PlayerInfo[playerid][pSQLID] = strval( result ); mysql_fetch_field_row(result,"referral"); PlayerInfo[playerid][pReferral] = strval( result ); mysql_fetch_field_row(result,"referralp"); PlayerInfo[playerid][pReferralP] = strval( result ); mysql_fetch_field_row(result,"HPoints"); PlayerInfo[playerid][pHPoints] = strval( result ); mysql_fetch_field_row(result,"Gift"); PlayerInfo[playerid][pGift] = strval( result ); mysql_fetch_field_row(result,"Carkey"); PlayerInfo[playerid][pPcarkey] = strval( result ); mysql_fetch_field_row(result,"motokey"); PlayerInfo[playerid][pmotokey] = strval( result ); mysql_fetch_field_row(result,"helikey"); PlayerInfo[playerid][phelikey] = strval( result ); mysql_fetch_field_row(result,"prcarkey"); PlayerInfo[playerid][pprcarkey] = strval( result ); mysql_fetch_field_row(result,"Laptop"); PlayerInfo[playerid][pLaptop] = strval( result ); mysql_fetch_field_row(result,"Victim"); strmid(PlayerInfo[playerid][pVictim], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Accused"); strmid(PlayerInfo[playerid][pAccused], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime1"); strmid(PlayerInfo[playerid][pCrime1], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime2"); strmid(PlayerInfo[playerid][pCrime2], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Crime3"); strmid(PlayerInfo[playerid][pCrime3], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"BTemp"); PlayerInfo[playerid][pBTemp] = strval( result ); mysql_fetch_field_row(result,"BYear"); PlayerInfo[playerid][pBYear] = strval( result ); mysql_fetch_field_row(result,"BMonth"); PlayerInfo[playerid][pBMonth] = strval( result ); mysql_fetch_field_row(result,"BDay"); PlayerInfo[playerid][pBDay] = strval( result ); mysql_fetch_field_row(result,"BBy"); strmid(PlayerInfo[playerid][pBBy], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"BReason"); strmid(PlayerInfo[playerid][pBReason], result, 0, strlen(result), 255); mysql_fetch_field_row(result,"Fakea"); PlayerInfo[playerid][pFakea] = strval( result ); mysql_fetch_field_row(result,"ALeader"); PlayerInfo[playerid][pALeader] = strval( result ); } }
Cele care ar trebui sa le incarce ar fi ..BTeamp, BMonth, BDay, BBy, BReason, dar nu se intamplat, daca nu e aici unde sa caut?
-
23 hours ago, Krusher said:
Daca primeste ban prin comanda [/ban] se mai poate conecta? Daca nu, da-ne comanda [/ban], daca in continuare se poate conecta si la [/ban] da-ne OnPlayerConnect/OnPlayerLogin sau cum ai tu in gm.
poftim comanda ban, da la comanda ban nu se mai poate connecta, dar am mai multe variante de prima /ban care ii da permanent, si a doua banex si aia pe zile, si la aia se poate conecta dinou
CMD:ban(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { new id,reason[128],string[200],giveplayer[30],sendername[30],Type,str[128]; if(sscanf(params, "uds[128]", id,Type,reason)) return SCM(playerid,COLOR_DS,"{00FF00}Folosire{FFFFFF}: /ban <Name/Playerid> <Type(1-account 2-permanent)> <reason>"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(Type == 1) { format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, motiv: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este http://SincePlay.RO/."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); KickEx(id); } else if(Type == 2) { format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, motiv: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este http://SincePlay.RO/."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); Ban(id); } return 1; } } else return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected."); } else return SendClientMessage(playerid, COLOR_DS, AdminOnly); } return 1; }
-
Nu se salveaza banul primeste 3/3 warn, dar tot se poate connecta pe sever
CMD:warn(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1) { new id,reason[128],string[200],giveplayer[30],sendername[30]; if(sscanf(params, "us[128]", id, reason)) return SCM(playerid,COLOR_DS,"{00FF00}Folosire{FFFFFF}: /warno <Name/Playerid> <reason>"); { if(IsPlayerConnected(id)) { new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); if(id != INVALID_PLAYER_ID) { GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[id][pWarns] += 1; format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, reason); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "You were warned by %s, reason: %s", sendername, reason); SendClientMessage(id, COLOR_LIGHTRED, string); format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s", giveplayer, sendername, reason); Adminlog(string); Update(id,pWarnsx); if(PlayerInfo[id][pWarns] >= 3) { new year,month,day; getdate(year, month, day); day += 2; if (IsMonth31(month)) { if (day > 31) { month += 1; if (month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if (!IsMonth31(month)) { if (day > 30) { month += 1; if (month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if (!IsMonth31(month) && IsMonth29(year) && month == 2) { if (day > 29) { month += 1; if (month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if (!IsMonth31(month) && !IsMonth29(year) && month == 2) { if (day > 28) { month += 1; if (month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } PlayerInfo[id][pBTemp] = 1; PlayerInfo[id][pBYear] = year; PlayerInfo[id][pBMonth] = month; PlayerInfo[id][pBDay] = day; strmid(PlayerInfo[id][pBBy], sendername, 0, strlen(sendername), 255); strmid(PlayerInfo[id][pBReason], reason, 0, strlen(reason), 255); Update(id,pBTempx); Update(id,pBYearx); Update(id,pBMonthx); Update(id,pBDayx); Update(id,pBByx); Update(id,pBReasonx); PlayerInfo[id][pWarns] = 0; Update(id,pWarnsx); format(string, sizeof(string), "AdmCmd: %s was banned by AdmBot for 2 days (had 3 Warnings), reason: %s", giveplayer,reason); SendClientMessageToAll(COLOR_LIGHTRED, string); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],"3 Warnings",2); KickEx(id); } Warnlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason); } } else return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected."); } } else return SendClientMessage(playerid, COLOR_DS, AdminOnly); } return 1; }
-
5 hours ago, Maurice said:
O idee ar fi asa:
- Faci un timer de o secunda si salvezi locatia jucatorului
- Retii tot timpul ultima locatie si locatia curenta
- Daca diferenta intre cele doua puncte geometrice este mai mare decat o valoare x - atunci inseamna ca jucatorul ori s-a respawnat ori a folosit teleporthackDaca mergi cu un infernus cu viteza maxima ai putea sa vezi cam care este valoare x. Mai apoi, tratezi cazul in care un jucator se respawneaza, si detectezi in cele din urma daca foloseste teleporthack.
Pai, cum se face de la ce sa incep ca, ce ai scris tu acolo pot sa scriu si eu, dar sa pun inpractica nu prea.
-
Salut, am si eu o problema cu sistemul anti-teleport, adica cum pot sa fac imi dau seama ca cineva foloseste. imi puteti da un link cu un tutorial sa vad cum se face?
-
Edit:
Am refacut windowsul si merge totul bine acum.
-
Salut, deci ma ajuta WopsS sa rezolv toate errorile, si dupa am luat ,,Atom'' si mergea perfect, am rezolvat tot, si cand dau sa porneasca serverul imi iasa direct, am dat uninstal la atom, mergea perfect, dupa ce dadeam f5 pe orice .pwn, nu mai pornea gm adica uitativa...
poza:
Spoilerv0.3.7-R2, (C)2005-2015 SA-MP Team
[14:46:08] filterscripts = "" (string)
[14:46:08]
[14:46:08] Server Plugins
[14:46:08] --------------
[14:46:08] Loading plugin: crashdetect
[14:46:08] CrashDetect v4.13.1 is OK.
[14:46:08] Loaded.
[14:46:08] Loading plugin: mysql
[14:46:08] >> plugin.mysql: R38 successfully loaded.
[14:46:08] Loaded.
[14:46:08] Loading plugin: streamer
[14:46:08]*** Streamer Plugin v2.8.2 by Incognito loaded ***
[14:46:08] Loaded.
[14:46:08] Loading plugin: sscanf
[14:46:08][14:46:08] ===============================
[14:46:08] sscanf plugin loaded.
[14:46:08] Version: 2.8.1
[14:46:08] (c) 2012 Alex "Y_Less" Cole
[14:46:08] ===============================
[14:46:08] Loaded.
[14:46:08] Loaded 4 plugins.[14:46:08]
[14:46:08] Filterscripts
[14:46:08] ---------------
[14:46:08] Loaded 0 filterscripts.[14:46:08] [debug] Run time error 19: "File or function is not found"
[14:46:08] [debug] SSCANF_IsConnected
[14:46:08] [debug] Run time error 19: "File or function is not found"
[14:46:08] [debug] SSCANF_IsConnected
[14:46:08] Script[gamemodes/sinceplay.amx]: Run time error 19: "File or function is not found"
[14:46:08] Number of vehicle models: 0
Am pus si eror server_log
-
Merci, am rezolvat toate errorile.
-
Cum se numeste programul? map editor sau cum
-
Salut, ma poate ajuta cineva cu problema aceasta, am cautat pe net peste tot, si tot nu am gasit cum se rezolva problema aceasta.
poza:
Nu stiu cum sa rezolv problema aceasta, invat infiecare zi cum se rezolva unele probleme sau cum sa fac anumite sisteme etc... Dar nu gasesc cum se rezolva problema aceasta.
P.S. sunt incepator nu ma criticatii daca nu prea stiu
-
Stie cineva un game mode compatibil cu Since Play?
-
Am rezolvat
puteti da TC
Merci la cei care au incercat sa ma ajute.
-
dami pm cu contul daca esti asa darnic
-
Vand contul xNoAir, de pe og-times
Are pe el 350kk, si este in Taxi SF r2.
-
Salut, am si eu o problema, la clan adica la tag.
Cand imi fac clan si imi pun tag-ul de la clan si dupa ce inchid serveru' sau ii dau restart nu imi mai apare tag-ul la /clan -> Tag
Ce sa fac?
Problema Comanda
in Arhivă probleme
Posted