Jump to content

StrikerM

Membru
  • Posts

    514
  • Joined

  • Last visited

  • Days Won

    30

Everything posted by StrikerM

  1. @Sledgy Greu de crezut ca se mai apuca cineva de RP mai ales in Romania. Nici ro-rp care are vechime si scripturi de nota 10 tot nu mai au jucatori .. RP la noi in tara e mort, rupem pe RPG atat.
  2. @r3f13x2 Restrictia arata cum trebuie si doar admini de level +7 o pot folosi. < 7 reprezinta ca sub nivel 7 de admin nu se poate folosi. @KB.HERO Daca ar fi pus la ambele asa if(PlayerInfo[playerid][pAdmin] >= 7) return SCM(playerid, COLOR_RED, AdminOnly); Puteau toti sa le foloseasca mai putin cei cu admin 7 si +7.
  3. Update la streamer cat si la plugin cat si la includ si re-compilezi gamemode-ul.
  4. Hai ca recomanzi daca e, 2 postari pe acelasi topic in acelasi timp cont facut acum 5 ore nimic suspect.
  5. Atunci nu are functia aia in gamemode sau probabil modurile pe care tu le folosesti iti ofera ti-e acest mesaj de stunt bonus cand faci ceva. Majoritatea serverelor sunt scriptate de "scripteri foarte buni" si intretinute de altii "si mai buni".
  6. @-=[Vyorel]=- a dat fail .. am ras cu lacrimi cand a spus de majoritatea ca erau scripteri de te 'uiti ca la dumnezeu', bomba raspuns .
  7. Pai asta e chestia ca daca nu au functia aia inseamna ca au stunt bonus activat. Find server de stunt e si normal sa il aibe.
  8. @Bobu Nota 10 arata foarte misto si eu unu nu am mai vazut nicaieri asa ceva.
  9. Persoane ce se apuca de scriptat de azi pana pe maine.
  10. Care este eroarea pe care o primesti dupa ce ai pus ? #include <YSI\y_hooks>
  11. Daca joci pe un server detinut de tine adauga asta EnableStuntBonusForAll(0); sub OnGameModeInit si compileaza. Daca nu este serverul tau si te joci online atunci ei au aceasi problema. Daca esti pe single player nu ai ce ii faci probabil doar cu moduri dar nici atunci daca nu a fost scos intentionat de cine a creat modul.
  12. Arata usor dubios, data si ora arata total lipsa de inspiratie si ocupa mult spatiu. Partea pentru masina total oribil adica chiar e oribil 3 lucruri sus pe centru si benzina jos ... Imi place totusi logo de sus din dreapta. Nu este 'hate' doar ca asa vad eu, poate tu ai alta viziune asupra textdraw-urilor pe care le-ai facut, succes.
  13. Trebuie sa il definesti in totalitate din textdraw global in unu per player.
  14. Salut, nu o zic cu rautate ... dar citeste inainte sa raspunzi, i-am explicat deja ce sa faca. @BaFFyJunior Salut, daca le dai mura in gura nu o sa invete niciodata si mereu o sa ceara asa scripturi, mai sus eu i-am explicat exact ce sa faca. @NuamNume Salut, ai mutat sub onplayerclicktextdraw asa ca o sa folosesti clickedid inloc de playertextid.
  15. Folosesti OnPlayerClickPlayerTextDraw Dar tu ai un textdraw global. Adauga if(playertextid == LoginPTD[1]) ShowPlayerDialog(playerid, DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD, "Login", "Insert your password in the dialog below!", "Login", "Quit"); Sub OnPlayerClickTextDraw Dar te sfatuiesc sa folosesti textdraw per player si nu globale, doar textdraw-urile de tip nume/logo/ceas poti sa le lasi pe global, tot ce se poate selecta sau schimba din gamemode si are o eficienta mai mare precum asta pot aparea probleme, daca sunt +2 jucatori eu pot selecta si sa ne faca actiunea amandurora.
  16. Salut. La linia 11 unde ai 'new' incearca sa ai spatiu intre 'new si incercariparola'. new incercariParola[MAX_PLAYERS]; Si la linia 66 la final de tot pune punct si virgula. ;
  17. @HPQ123 Un sfat pentru a te ajuta sa gasesti oameni care sa iti cumpere serviciile ar fi ceva mai multa activitate in rubrica de ajutor. Succes.
  18. @LucaPawnL Ii dai bine dar el vrea sa umble dupa persoana cautata, adica faci un timer si ii tot pui CP pe el si daca intra in HQ ii pui in fata la intrare.
  19. Uite arhiva cu YSI din folderul pawno > include YSI.rar
  20. Majoritatea scripterilor ce au ceva cunostinte si te pot ajuta doresc plata. Baieti seriosi se gasesc dar ca ideie majoritatea daca vad ca nu ai macar 40-50+ nu prea se obosesc sa ajute.
  21. In folderul include din compilator ar trebui sa ai un folder numit YSI_Data si in ala sa fie un includ numit y_iterate.inc, il poti gasi pe internet sau in orice alt gamemode de la rubrica 'gamemodeuri'.
  22. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); mysql_format(SQL, gString, sizeof(gString), "SELECT * FROM `users` WHERE `Owner` = '%s'", GetName(playerid)); new Cache:result = mysql_query(SQL, gString); cache_get_row_count(rows); for(new i; i < rows; i++) { cache_get_field_content_int(i, "Admin", padmin); } if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; 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; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); return true; }
  23. Daca nici asa nu merge, nu ma bag e prea imensa comanda oricum .. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); cache_get_row_count(rows); for(new i; i < rows; i++) { cache_get_field_content_int(i, "Admin", padmin); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; 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; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); } return true; }
×
×
  • 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.