Jump to content

Roach

Membru
  • Posts

    660
  • Joined

  • Last visited

    Never

Everything posted by Roach

  1. Roach

    [MAP]Quad Racers

    Ai idei foarte bune daca continui asa vei ajunge undeva, 10/10
  2. Roach

    Plaja party MAP

    Imi place se pare ca ai idei bune, 4/5 gj tineo tot asa!
  3. Sunt invidiosi ca lam facut poate.Mai bina nul faceam si Gata!
  4. Nu e man Gf edit poate ca neam inclinat spre GF dar lam facut eu cu KaTaM !!!!
  5. Mda acuma vad ca ai schimbat factiunile, KaTa! PS:Nu e un GF Edit!Nu mai ziceti asta de modu pe care lam facut ca dupa voi toate ar fi GF edit!
  6. Factiuni: Cele normale dar intre ele mai e si Bloodz si Crips! Joburi:Cele cunoscute... Comenzi Admin: Cele cunoscute si unele reparate de mine! E un GameMod foarte Frumos pentru cei carora le place RolePlay-ul. Deci Enjoy with it! Autori: GameMod:?????(nu stiu deci daca un administrator stie sami modifice sau sami zica). Scripters: Ady.b si KaTaM(60% din mod lam reprarat noi...era numai buguri) Si ce sa va mai zic sper sa va distrati cu el!(este un mod foarte bun...cand il foloseam aveam 50-60 de playeri pe server poate chiar si mai mult) DoWnLoAd http://solidfiles.com/d/089fb/
  7. Roach

    [MAP]Concert v2

    Super!O voi folosi!9/10;)
  8. Roach

    [MAP]Going Down

    PS:Tiar trebui un AutoRepair ca sa rezisti mai mult!
  9. Daca apare invizibil nu a pus la joinPeds sau la skinurile factiuni...
  10. 5/5 e super tare!!!GJ sa mai faci de astea.(o s-o folosesc)!!! ;)
  11. Roach

    Personal Cars.

    Exista Uitete pe www.forum.sa-mp.com acolo o sa gasesti sigur sctie Ownership Cars sau ceva de genu! Daca gasesc iti dau Site! ----------------------------------------------------------- Uite Cateva: http://forum.sa-mp.com/showthread.php?t=98074&highlight=Car+Ownership http://forum.sa-mp.com/showthread.php?t=36690&highlight=Car+Ownership http://forum.sa-mp.com/showthread.php?t=55992&highlight=Car+Ownership http://forum.sa-mp.com/showthread.php?t=61280&highlight=Car+Ownership .....Si data viitoare foloseste Search te rog!
  12. Intr-un fel e in altul nu!Defapt tutorialul mil aminteam dar functiile si chestiile din pawno nu.Deci mam uitat!
  13. Bun sa incepem! Incepem punand pCigarettes la enum pInfo, daca nu il aveti puneti asa: enum pInfo { pCigarettes, }; new PlayerInfo[MAX_PLAYERS][pInfo]; Dar sunt sigur ca il aveti! Dupa ne ducem la public OnPlayerConnect Si punem la PlayerInfo PlayerInfo[playerid][pCigarettes] = 0; Acum ne ducem la public OnPlayerDisconnect si punem if(IsSmoking[playerid] > 0) { if(IsSmoking[playerid] == 1) { new sendername[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s finishes his cigarette.", sendername); } else { format(string, sizeof(string), "* %s finishes her cigarette.", sendername); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); new Float:PlayerHealth; GetPlayerHealth(playerid, PlayerHealth); SetPlayerHealth(playerid, PlayerHealth+7); ClearAnimations(playerid); } } Pentru ca aceasta functie sa mearga!Punem la new...; new IsSmoking[MAX_PLAYERS]; Acum dam CTRL+F si cautam Fishes[playerid][pFishID] = 0; si adaugam IsSmoking[playerid] = 0; Cam asa: Fishes[playerid][pFishID] = 0; IsSmoking[playerid] = 0; Mergem la new si adaugam new cig = PlayerInfo[targetid][pCigarettes]; Daca vreti sa va apara si la /stats tigarile pe care le aveti faceti asa: CTRL+F si cautati Level:[%d](ca sa va fie mai usor de gasit)si dupa ultima adaugam Cigarettes:[%d] Sa fie cam asa: format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d] Cigarettes:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber, cig); Acum mergem la public OnPlayerRegister si inainte de fclose(hFile);(inainte cu o linie facem una noua) scriem: format(var, 32, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var); Acum mergem la public OnPlayerUpdate si facem la fel ca la OnPlayerRegister! Acum mergem la public OnPlayerLogin si punem asta: if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); } dar sa fie inainte de fclose adik inca intre parantezele{ } Bun acum sa facem comenzile! mergem sa zicem inainte la /healall si bagam asta: if(!strcmp(cmdtext, "/dropcigar", true)) // By Roach { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(IsSmoking[playerid] > 0) { IsSmoking[playerid] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s takes a cigarette from his mouth and drops it on the ground.", sendername); } else { format(string, sizeof(string), "* %s takes a cigarette from her mouth and drops it on the ground.", sendername); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ClearAnimations(playerid); } else { SendClientMessage(playerid, COLOR_GREY, " You are not even smoking ! "); return 1; } } return 1; } if(!strcmp(cmdtext, "/smokecigar", true)) // By Roach { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(IsSmoking[playerid] == 0) { if(PlayerInfo[playerid][pCigarettes] == 0) { SendClientMessage(playerid, COLOR_GREY, " You don't have a cigarette to smoke ! "); return 1; } new randsmoke = random(2)+1; if(randsmoke == 1) { PlayerInfo[playerid][pCigarettes] -= 1; IsSmoking[playerid] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s takes out his lighter and cigarette and lights it up.", sendername); } else { format(string, sizeof(string), "* %s takes out her lighter and cigarette and lights it up.", sendername); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY); // this will give player a cigar SendClientMessage(playerid, COLOR_WHITE, "TIP: Poti da /dropcigar ca sa arunci tigara si apesi tasta F sau ENTER."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are already smoking ! "); return 1; } } return 1; } Acum facem in asa fel incat sa cumparam tigarile! mergem la /buysi dupa ultima chestie du cumparat ex:12.Frozzen Pizza. punem 13.Cigarettes. Acum sa facem asa: else if (item == numarul itemului(adica 13 sa zicem) && GetPlayerCash(playerid) > 30) { if(PlayerInfo[playerid][pCigarettes] >= 30) { SendClientMessage(playerid, COLOR_GREY, " You have to many Cigarettes, smoke it !"); return 1; } if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 30 / 10; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 10 - price; GivePlayerCash(playerid, - payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerCash(playerid, - 30); format(string, sizeof(string), "~r~-$%d", 10); GameTextForPlayer(playerid, string, 5000, 1); } PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Cigarettes purchased."); SendClientMessage(playerid, COLOR_GRAD4, string); PlayerInfo[playerid][pCigarettes] += 10; return 1; } A da si asta: else { SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that !"); } Trebuie sa fie ultima! Scuzatimi explicatia dar nu am mai facut un tutorial pana acuma! Sper sa va ajute;)
  14. Descriere: Nu este o idee originala pentru ca am vazut pe multe servere e RolePlay acest Filterscript! Dar mam gandit sal postez pe al meu!Facut de mine! Daca are buguri sa ma anuntati va rog! Autor: Roach(me) Timp de lucru: nu mai imi amintesc cred ca o ora... Download http://solidfiles.com/d/84ff/ Sper Sa Va Placa!
  15. Imi pare rau pentru Double Post dar sa zicem ca las cele 2 butoane dar cum fac ca atunci cand apas Exit sa numi zice Server Close Conection si sa ma dea afara de pe Server?
  16. Pei da si eu cum as putea sa fac sa dispara butonul?
  17. Bravo! C:\Users\Adi\Desktop\Total GodFather[0.3]63\Total GodFather[0.3]6\Total GodFather[0.3]\gamemodes\grp.pwn(23886) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Header size: 9612 bytes Code size: 1779940 bytes Data size: 5511668 bytes Stack/heap size: 16384 bytes; estimated max. usage=5103 cells (20412 bytes) Total requirements: 7317604 bytes 1 Warning. Ai putea sal repari: new DialogString[1300]; format(DialogString, sizeof DialogString, "%s%s%s%s%s%s", ahelp, ahelp2, ahelp3, ahelp4, ahelp5, ahelp6); ShowPlayerDialog(playerid, 73, DIALOG_STYLE_MSGBOX, "Admin Help", DialogString, "Ok");
  18. 1.Am vazut pe anumite servere ca la Dialog e doar un singur buton(Ok)Cum pot face si eu astea? 2.Ca atunci cand am un dialog deschis si apas Exit sa nu imi dea Server Close conection!
×
×
  • 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.