Jump to content

stefanel994

Membru
  • Posts

    113
  • Joined

  • Last visited

    Never

Everything posted by stefanel994

  1. bun am pus asta compilat cu include no erors no nimic acum in loc de format(string,sizeof(string),"%s.ini",tmp); dini_IntSet(string, "Blocat", 0); ce trebuie sa modific pentru comanda unban sami scrie in useru respectiv ?xD
  2. Da inca o intrebare ce editor sa folosesc? ca,cu dini cand dau /unban nu imi editeaza fisierul userului bine.
  3. frate stiu ce zic calm e o problema in comanda unban ori e pus ceva in plus ori lipseste ceva. Cand intru la useri acolo si modific la Blocat din 1 in 0 merge perfect nu se schimba parola cand dau unban din game se schimba parola la contu respectiv.
  4. Am comenzile astea la ban si unban //-----------------------------Unban------------------------------------------- if(strcmp(cmd, "/unban", true)==0) { if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 4) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xA8A8FFFF, "USAGE: /unban [PlayerName]"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp); ABroadCast(COLOR_YELLOW,string,1); format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp); format(string,sizeof(string),"%s.ini",tmp); dini_IntSet(string, "Blocat", 0); SendClientMessage(playerid, COLOR_WHITE, "Player Unbanned"); } return 1; } if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); new playersip[256]; GetPlayerIp(giveplayerid,playersip, sizeof(playersip)); SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[BAN INFO]___________|"); format(string, sizeof(string), "Numele tau este: %s.",giveplayer); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "IP-ul tau este: %s.",playersip); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat de: %s.",sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pentru urmatorul motiv: %s.",(result)); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pe data de: %d/%d/%d (Ziua-Luna-Anul)",day,month,year); SendClientMessage(giveplayerid, COLOR_WHITE, string); SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[BAN INFO]___________|"); SendClientMessage(giveplayerid,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este www.blackrockk.eu Succes !"); SendClientMessage(giveplayerid,COLOR_WHITE,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza !"); PlayerInfo[giveplayerid][pBlocat] = 1; Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Cand intru unde am useri si modificat la blocat din 1 in 0 merge perfect dar cand dau unban din game i sa schimba parola la playerul pe care il debanez plz help spuneti ce am gresit in comanda de unban.
  5. Va rog ajutatima cu bancheck cand un player se conecteaza sa verifice daca e banat daca e banat sa ii dea kick am facut sistem care scrie in documentu userului banned =1 cand e banat si banned = 0 cand nu are ban xD help plz
  6. Cine imi paote da si mie 2 comenzi bune de /ban si /unban va rog am cautat de am inebunit si nu gasesc.. Ptr gf original.
  7. incearca sa il cauti cu find cate 1 cuvant din el ca paote e scris cu ~r~a ~b~iesit etc.
  8. stiam si eu ca tb adaugate astea dar qm xD poti sa mi le pui tu in comanda direct xd cele cu faction membre alea cu pozitiile lea rez xD
  9. Am facut o comanda zilele astea si am o intrebare //----------------------------[depune]-------------------------------------------------// if(strcmp(cmd,"/depune",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,653.7766,-496.4872,16.3359)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Depune __________________|"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /depune [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: mats, drugs"); SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|"); return 1; } if(strcmp(x_nr,"mats",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Mats [amount]"); format(string, sizeof(string), " You Have %d Mats on you.", PlayerInfo[playerid][pMats]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new matss; matss = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Mats [amount]"); format(string, sizeof(string), " You Have %d Mats on you.", PlayerInfo[playerid][pMats]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if(matss > PlayerInfo[playerid][pMats]) { SendClientMessage(playerid, COLOR_GRAD2, " You don't have that many!"); return 1; } PlayerInfo[playerid][pMats] -= matss; PlayerInfo[playerid][pBoxMats] += matss; format(string, sizeof(string), " %d materials deposited!", matss); SendClientMessage(playerid, COLOR_GRAD4, string); return 1; } else if(strcmp(x_nr,"drugs",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Drugs [amount]"); format(string, sizeof(string), " You Have %d Drugs on you.", PlayerInfo[playerid][pDrugs]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new drugss; drugss = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Drugs [amount]"); format(string, sizeof(string), " You Have %d Drugs on you.", PlayerInfo[playerid][pDrugs]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if(drugss > PlayerInfo[playerid][pDrugs]) { SendClientMessage(playerid, COLOR_GRAD2, " You don't have that many!"); return 1; } PlayerInfo[playerid][pDrugs] -= drugss; PlayerInfo[playerid][pBoxDrugs] += drugss; format(string, sizeof(string), " %d Drugs deposited!", drugss); SendClientMessage(playerid, COLOR_GRAD4, string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not in the safebox place !"); return 1; } }//not connected return 1; } Cum o pot face sa paote fi folosita in mai multe locuri si cum pot face sa o foloseasca doar membri unei anuminte factiuni.
  10. primesti flood si pe host de la forceds am avut eu host la ei. Nu exista antiflood nici pentru linux nici ptr windows daca flooderul are experienta.
  11. daca flooderul are experienta nu ai cu ce sa il opresti.
  12. f bun ms multe puteti da TC
  13. pai da ala e ptr sendplayermessage adica cand dai pe say eu am intrebat ptr dialoguri ^_^
  14. Cum fac sa mearga sa pun Culori si in dialoguri de exemplu cum fac la chat #REDetc sa pot face si la dialoguri am vazut ca pe unele servere merge.
  15. [glow=red,2,300]REzolvat ![/glow]
  16. stefanel994

    Mysql

    nu sunt pe forumu asta sa ma cert cu tine . nu sunt de la forceds, am avut hosting la ei si mi s-a parut destul de seriosi nu am avut absolut nicio problema de ei, nu iti convine dute si iati host de la unu care ii dai banii prin transfer credit sa iti dea hosting pe **** dupa. $@L
  17. o intrebare cum pot face in pickupul astaa sa teleporteze doar membri unei anumite factiuni?
  18. stefanel994

    Mysql

    sincer esti paralel cu sa-mpu au inclusa plata prin sms daca nu ai observat si iti poti plati. Si 10 Euro nu este 50 lei.
  19. daca modific public OnPlayerText(playerid, text[]) { public OnPlayerText(playerid, text[]) { SendPlayerMessageToAll( playerid, ColouredText( text ) ); return 0; } uite ce eroare imi apare
  20. stefanel994

    Mysql

    www.forceds.ro iti recomand. foarte seriosi si foarte bun host.
  21. cred ca is destul de bn facute tutorialele daca ai putin habar le intelegi destul de usor.
  22. nu trebuie sa ai si niste chestii cu forward pentru callbackuri ?
×
×
  • 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.