Jump to content

AGaaA

Membru
  • Posts

    14
  • Joined

  • Last visited

Everything posted by AGaaA

  1. if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You havent logged in yet !"); return 1; } if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Trebuie sa ai level 2 pentru a putea folosi comanda! !"); return 1; } if(!PlayerToPoint(3.0,playerid,27.9149,33.9727,1000.0859)) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You are not at Advertise studio !"); return 1; } if(PlayerInfo[playerid][pAD] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "[Eroare]: Esti banat pe /ad , data viitoare ai grija ce /ad dai."); return 1; } 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(DetectSPAM(result)) /// Anti-Reclama2 { new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "[i-Bot]: %s was silenced 10 minute(s), reason: [Server Advertising]",advertiser); SendClientMessageToAll(COLOR_LIGHTRED,string); PlayerInfo[playerid][pMuted] = 1; PlayerInfo[playerid][pMuteTime] = 10*60; KickLog(string); return 1; } if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), "[ERROR]: Please try again later %d seconds between Advertisements !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 500; if(GetPlayerMoney(playerid) < payout) { format(string, sizeof(string), "[Eroare]: You used %d characters which cost %s, you don't have enough.", offset, DecimalPoint(payout)); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } GivePlayerMoney(playerid, - payout); SBizzInfo[7][sbTill] += payout; ExtortionSBiz(7, payout/2); format(string, sizeof(string), "[Advert] %s, Phone: %d, Name: %s", result, PlayerInfo[playerid][pPnumber], sendername); OOCNews(TEAM_GROVE_COLOR,string); format(string, sizeof(string), "~r~Paid %s~n~~w~Message contained: %d Characters", DecimalPoint(payout), idx); GameTextForPlayer(playerid, string, 5000, 1); if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;} } return 1; }
  2. Cum as putea sa fac si eu cand dau /ad,/o,si alte comenzi sa imi faca scris-ul asa adica daca scriu mult sa se faca pe doua randuri?
  3. Am rezolvat ! Mersi oricum!
  4. Ce script ? Unde il gasesc si nu,nu am FS!
  5. Problema intalnita (descriere): Cand intra cineva cu un sultan/elegy/uranus in tunning SF practic nu se intampla nimic.Ero(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): Sa-mi spuneti ce trebuie sa punImagini / Video (optional): -Ati incercat sa rezolvati singur?: Da
  6. AGaaA

    O comanda/ FS

    Nu mersi,de aici ma descurc.
  7. Salut am si eu nevoie de o comanda / filtrescript cu seatbelt / centura... in romana si altele..Nu prea am gasit...
  8. Adauga : plugins crashdetect.so Whirlpool.so sscanf.so streamer.so mysql.so GeoIP_Plugin.so libRegEx.so in loc de plugins crashdetect.so Whirlpool sscanf streamer mysql GeoIP_Plugin libRegEx Fai un update la streamer,include,plugins si apoi recompileaza GM
  9. Asa, am si eu acelasi gamemode de il ai Adauga in loc de CreateObject , CreateDynamicObjectEx
  10. AGaaA

    Mode : Unknown

    Dupa ce ai pus serverul pe host,intra in server.cfg , linia plugins acolo unde ai streamer.dll sscanf.dll adauga .so in loc de dll si apoi da restart la server.
  11. Incearca sa iei streamerul nou de AICI Apoi dai dinou compile la gamemode;)
  12. AGaaA

    Problema sv

    Da,acel host trebuie platit pe fiecare luna.
  13. AGaaA

    Problema sv

    Dupa ce ai primit ip-ul, bagi acolo gamemode,in server.cfg schimbi plugin-urile steamer.dll sscanf.dll si ce mai ai in steamer.so etc.. apoi te joci cu prietenii tai
×
×
  • 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.