Jump to content

tudorsvrpg

Membru
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by tudorsvrpg

  1. Am rezolvat , merci oricum puteti inchide topicul !
  2. Salut , gamemodul care il folosesc este un fel de godfather ,dar editat mult ! Si am 2 probleme . 1 - Nu merge dupa ce cumpar o casa sa ies din ea pe f pana nu da un admin respawn . Nu stiu ce are !! Dupa ce dau respawn la player chiar si mie merge , asta se intampla doar prima oara cand cumpar casa. 2 - La comanda /sellhouse de fiecare data cand vand o casa indiferent de cat costa primesc 100$ , dar eu vreau sa primesc cat am platit pe ea nu 100$ si dupa se pune la vanzare tot cu 100$ in loc de 1 milion. ! Cine ma poate ajuta ? Asta este comanda /sellhouse [pawn] if(strcmp(cmd, "/sellhouse", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPhousekey] == 9000) { SendClientMessage(playerid, COLOR_WHITE, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar nu detineti o Proprietate."); return 1; } if(PlayerInfo[playerid][pMarried] > 0) { SendClientMessage(playerid, COLOR_GREY, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar sunteti Casatorit asa ca nu puteti vinde Proprietatea."); return 1; } if(PlayerInfo[playerid][pPhousekey] != 9000 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { Delete3DTextLabel(Text3D:House3D); new house = PlayerInfo[playerid][pPhousekey]; HouseInfo[house][hHel] = 0; HouseInfo[house][hArm] = 0; HouseInfo[house][hHealthx] = 0; HouseInfo[house][hHealthy] = 0; HouseInfo[house][hHealthz] = 0; HouseInfo[house][hArmourx] = 0; HouseInfo[house][hArmoury] = 0; HouseInfo[house][hArmourz] = 0; HouseInfo[house][hLock] = 1; HouseInfo[house][hOwned] = 0; HouseInfo[house][hValue] = 100; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid, 100); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Ati vandut proprieatea ~n~~g~$100"); GameTextForPlayer(playerid, string, 10000, 3); PlayerInfo[playerid][pPhousekey] = 9000; if(PlayerInfo[playerid][pLocal] == house) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); PlayerInfo[playerid][pInt] = 0; } Delete3DTextLabel(Text3D:House3D); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar nu detineti o Proprietate."); } } return 1; }[/pawn] Si asta este casa din property.cfg [pawn] if(strcmp(cmd, "/sellhouse", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPhousekey] == 9000) { SendClientMessage(playerid, COLOR_WHITE, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar nu detineti o Proprietate."); return 1; } if(PlayerInfo[playerid][pMarried] > 0) { SendClientMessage(playerid, COLOR_GREY, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar sunteti Casatorit asa ca nu puteti vinde Proprietatea."); return 1; } if(PlayerInfo[playerid][pPhousekey] != 9000 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { Delete3DTextLabel(Text3D:House3D); new house = PlayerInfo[playerid][pPhousekey]; HouseInfo[house][hHel] = 0; HouseInfo[house][hArm] = 0; HouseInfo[house][hHealthx] = 0; HouseInfo[house][hHealthy] = 0; HouseInfo[house][hHealthz] = 0; HouseInfo[house][hArmourx] = 0; HouseInfo[house][hArmoury] = 0; HouseInfo[house][hArmourz] = 0; HouseInfo[house][hLock] = 1; HouseInfo[house][hOwned] = 0; HouseInfo[house][hValue] = 100; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid, 100); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Ati vandut proprieatea ~n~~g~$100"); GameTextForPlayer(playerid, string, 10000, 3); PlayerInfo[playerid][pPhousekey] = 9000; if(PlayerInfo[playerid][pLocal] == house) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); PlayerInfo[playerid][pInt] = 0; } Delete3DTextLabel(Text3D:House3D); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, ""#GAlbastru"[suceava-RPG]: {ffffff}Ne pare rau, dar nu detineti o Proprietate."); } } return 1; }[/pawn] Ce naiba nu fac bine ?
  3. care e tot sistem ? ce vrei sa postez mai mult decat atat ? sa postez tot property.cfg?
  4. nu am addhouse, si nu vezi ca asta am postat ? Am postat si h info si model din property.cfg
  5. Hi I have a gamemode but I don't know how to add a house . This is how an example from property.cfg look like 2067.704833,-1628.859130,14.206600,1.200000,-3.400000,999.400024,0,0,0,0,0,0,The State,House,2000000,0,0,2,1,0,0,1000,0,3045,418,15,0 2066.738281,- and the house info : [pawn]enum hInfo { Float:hEntrancex, Float:hEntrancey, Float:hEntrancez, Float:hExitx, Float:hExity, Float:hExitz, hHealthx, hHealthy, hHealthz, hArmourx, hArmoury, hArmourz, hOwner[MAX_PLAYER_NAME], hDiscription[MAX_PLAYER_NAME], hValue, hHel, hArm, hInt, hLock, hOwned, hRooms, hRent, hRentabil, hTakings, hDate, hLevel, hVW, };[/pawn] and I would like to create a house with this interior 328.05 1477.73 1084.44 15- interior id
  6. Salut , caut un scripter bun care sa imi rezolve si mie sistemul de case din gamemode , adica sa il lase asa dar sa nu mai fie buguit si sa fie la fel ca acum doar ca sa se poata pune casele din joc printr-o comanda . Daca este cineva care sa pricepe sa imi dea add [email protected] sau sa ma contacteze pe serverul meu
×
×
  • 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.