Jump to content

hopingsteam

Membru
  • Posts

    75
  • Joined

  • Last visited

    Never

Everything posted by hopingsteam

  1. Cand omor pe cineva (ca si assasin) nu primesc banii .. de ce ? [pawn] if(PlayerInfo[playerid][pHeadValue] > 0) { if(IsPlayerConnected(killerid)) { if(PlayerInfo[killerid][pLeader] == 8 || PlayerInfo[killerid][pMember] == 8) { if(GoChase[killerid] == playerid) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); GivePlayerCash(killerid, PlayerInfo[playerid][pHeadValue]); format(string,128,"<< Assasin %s a omorat pe %s si a primit $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); SendClientMessage(playerid,COLOR_YELLOW,"<< Nimic personal. Cineva a pus un contract pe tine si asasinul l-a indeplinit >>"); PlayerInfo[playerid][pHeadValue] = 0; GotHit[playerid] = 0; GetChased[playerid] = 999; GoChase[killerid] = 999; } } } }[/pawn]
  2. Mie nu mi-a mers, am 846 de case, si ma lasa doar pana la 64..
  3. Banii se salveaza, este un bug vizual. Daca dau /pay hopingsteam 1, imi revin banii la normal ... de fiecare data cand ma loghez am "2000$" sus in dreapta ... dar pe /stats am banii mei normali
  4. Sa spunem ca am x dolari! Sus in dreapta imi arata 2000$, dar daca ma uit in hopingsteam.ini am Cash=x ... Oare de ce ? x(
  5. Si eu as vrea sa trec, imi puteti explica pas-cu-pas ce trebuie facut ?
  6. if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: (/su)spect [ ID / nume ] [ motiv ]"); return 1; } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 16) { if(OnDuty[playerid] != 1) { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You are not on Duty!"); return 1; } if(WantedPoints[giveplayerid] == 6) { SendClientMessage(playerid, COLOR_LIGHTGREEN, "Jucatorul are deja wanted 6!"); return 1; } else if (gTeam[playerid] == 2 || IsACop(playerid)) { giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (gTeam[giveplayerid] != 2) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(PlayerInfo[giveplayerid][pJailTime] == 0) { 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, "COMANDA: (/su)spect [ ID / Nume ] [motiv]"); return 1; } if(WantedPoints[giveplayerid] == 1) { WantedPoints[giveplayerid] = 2; } else { WantedPoints[giveplayerid]+= 2 ; } SetPlayerCriminal(giveplayerid,playerid, result); format(string, sizeof(string), "Suspect ID:%d - Wanted Points %d", giveplayerid, WantedLevel[giveplayerid]); SendClientMessage(playerid,COLOR_YELLOW, string); return 1; } else { format(string, sizeof(string), " %s este la inchisoare, nu ii poti da wanted !", giveplayer); SendClientMessage(playerid, COLOR_GRAD1, string); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Nu poti da wanted la politisti !"); } } } else { SendClientMessage(playerid, COLOR_GRAD2, "This player isn't online!"); } } } else { SendClientMessage(playerid, COLOR_GRAD2, "Nu esti politist ! !"); } } return 1; } 1: Am incercat sa pun maxim wanted 6, dar nu merge, ma puteti ajuta ? 2: Prima data cand dau /su: Wanted 0, a doua oara cand dau /su: Wanted 2, apoi 3,4,5 ... Cum pot face sa dau 1 ?
  7. http://wiki.sa-mp.com/wiki/TextDrawFont Citeste acolo !
  8. Diabolik - pune-ti un Anti-MoneyCheat ! Multumesc tuturor pentru ajutor !
  9. Daca te uiti bine, am scos faza cu "stai 60 min"
  10. De ce unele payday-uri se rateaza ... nu stiu :cry: [pawn]forward PayDay();[/pawn] [pawn]public SyncTime() { new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; if ((tmphour > ghour) || (tmphour == 0 && ghour == 24)) { ghour = tmphour; PayDay(); if (realtime) { SetWorldTime(tmphour); } } }[/pawn] [pawn]public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SendClientMessage(i, COLOR_1RED, "Nu ti-ai putut plati datoria !"); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 10); PlayerInfo[pInt] = 10; SetPlayerPos(i, -1113.7158,-973.2684,129.3254); PlayerInfo[pJailed] = 1; SetPlayerSkin(i, 62); ResetPlayerWeapons(i); ResetPlayerMoney(i); WantedPoints = 0; PlayerInfo[pJailTime] = 300; format(string, sizeof(string), "Esti la inchisoare pentru %d secunde.", PlayerInfo[pJailTime]); SendClientMessage(i, COLOR_WHITE, string); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerCash(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "Ai fost evacuat."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; new checks = PlayerInfo[pPayCheck] / 5; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 10; checks += bonus; } new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); ConsumingMoney = 1; GivePlayerCash(i, checks); if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; SendClientMessage(i, COLOR_GREEN, "|________BANK STATMENT________|"); format(string, sizeof(string), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue); SendClientMessage(i, COLOR_WHITE, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { format(string, sizeof(string), " Electricitatea: -$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Cont: $%d", account - checks); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Rata: 0.%d percent",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " Banii primiti: $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|"); format(string, sizeof(string), " Noul cont: $%d", PlayerInfo[pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " Chiria: -$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Verifica-ti contul !"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[pPayDay] = 0; PlayerInfo[pRob] += 1; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } if(PlayerInfo[pFpunish] > 0) { PlayerInfo[pFpunish] -= 1; } if(PlayerInfo[pMember] == 17 || PlayerInfo[pLeader] == 17) { PlayerInfo[pTow] += 5; } } } } SaveAccounts(); Checkprop(); return 1; }[/pawn]
  11. Am reusit ... acum trebuie sa gasesc o chestie numita "Allow external connections" .. am luat legatura cu cei de la host, sa vedem daca ma rezolva :)
  12. Am o problema, nu stiu cum sa completez mai exact: Host: ? ? ? (trec ip-ul domeniului meu ?) ex: xx.xxx.xxx.xxx ? User: ? user de la domeniu ... sau user de la DB ? Parola ? parola de la domeniu ... sau parola de la DB ? DATABASE TABLE: google_samp > singurul la care am stiut ce sa pun :)
  13. Am rezolvat eu pentru tine la ShowPlayerMarkers ! Deci cauta unde ai [pawn]ShowPlayerMarkers(2);[/pawn] si sterge-l ! Apoi cauta unde ai [pawn]public OnGameModeInit() {[/pawn] Si pune dedesupt de el ShowPlayerMarkers(numar); numar: 0 - DEZACTIVAT 1 - ACTIVAT 2 - ACTIVAT, dar vezi doar pe cei din apropierea ta !
  14. Iti multumesc pentru raspuns ! O sa-mi mut din nou baza de date pe plugin-ul care mi l-ai recomandat tu ! Iti multumesc inca o data, mai ajutat enorm !
  15. Salutare SA-MP Romania, Am mai multe probleme legate de MySQL: 1. Am reusit sa-mi mut serverul pe MySQL, dar folosind <a_sampmysql> , nu <a_mysql> ! Am citit undeva pe SA-MP.com ca ar fi recomandat sa am <a_mysql>, nu cel pe care il folosesc eu. 2. As vrea sa construiesc "Statistici Online" ! Nu stiu de unde sa apuc problema ! Daca sunteti buni sa-mi spuneti pas-cu-pas cum trebuie sa procedez, v-as fi recunoscator ! ... Puteti sa-mi aratati si o pagina simpla, gen: "Adminii Serverului", ma prind destul de repede cum sa fac mai departe ! Cred ca este o chestie de genul: "cauta pe cei care au pAdmin mai mare ca 0" ...
  16. 1. RECLAMA ! 2. Citeste aici: http://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer
  17. Nu imi trebuie pentru obiecte ! Ci pentru camera unui jucator !
  18. As vrea sa ma ajutati: Am decis ca la login screen sa seteze camera playerului undeva, dar nu stiu cum sa o pun in script, dau /save si ... nu stiu de unde sa apuc ! [pawn]SetPlayerCameraPos(playerid, 00, 00 , 00); SetPlayerCameraLookAt(playerid, 00, 00 , 00);[/pawn] Exista vre-un program care se joaca cu camera (in-afara de sacamhack, cu el nu pot salva pozitia camerei) in care sa pot salva pozitia camerei ?
  19. In primul rand, eu nu am auzit de ShowPlayerMarkers(false) ! http://wiki.sa-mp.com/wiki/ShowPlayerMarkers
  20. De fiecare data cand dau login pe cont suma de bani (cash) pe care o am aspura mea, se dubleaza, aveti idee de ce ?
  21. Citeste aici: http://www.sa-mp.ro/forum/index.php/topic,17591.msg103868.html#msg103868
  22. A mers, multumesc :X ... As mai avea cateva intrebari: 1. Are ceva daca la sa:mp server folosesc mysql de la site-ul meu, si nu de la cel de la care am hostul, ma gandesc ca nu are nimic, din moment ce, tot baza de date este ... Intreb, ca sa fi sigur ! 2. Nu pot sa-mi pun serverul pe game-monitor :(
  23. http://imageshack.us/photo/my-images/856/sssts.png/ ^^^^ Am DNS
  24. Care sunt avantajele dezavantajele, se merita sa trec pe MySQL, sau nu ?
×
×
  • 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.