Jump to content

HasH

Membru
  • Posts

    18
  • Joined

  • Last visited

Everything posted by HasH

  1. Problema intalnita (descriere): Salut , am si eu o problema in legatura cu wanted-ul , cand omor pe cineva ar trebui sa arate ca ai 60 secunde sa dai /call 911 Dar problema este cand cineva ma omora nu apare niciun mesaj Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul: if((WarInfo[turfkiller][wTime] != 0 && (WarInfo[turfkiller][wAttacker] == playerVariables[playerid][pGroup] || WarInfo[turfkiller][wFaction] == playerVariables[playerid][pGroup]) && playerVariables[playerid][pGroup] != 0) || (playerVariables[killerid][pGroup] == 1 || playerVariables[killerid][pGroup] == 2 || playerVariables[killerid][pGroup] == 3 || playerVariables[killerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == 1 || playerVariables[playerid][pGroup] == 2 || playerVariables[playerid][pGroup] == 3 || playerVariables[playerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == playerVariables[killerid][pGroup]) || (PlayerPaintballing[killerid] >= 1)) { } else { WantedID[playerid] = killerid; SCM(playerid, COLOR_GENANNOUNCE, "You have been attacked by another player. You have 60 seconds to call the police to report this crime. Use /call 112."); WantedIDTime[playerid] = 60; } //SetTimerEx("Spawn", 3999, 0, "d", playerid); SetPlayerHealth(playerid, 0); killerid = INVALID_PLAYER_ID; return 1; } CMD:call(playerid, params[]) { new number, string[128]; if(isnull(params)) return SCM(playerid, COLOR_GREY, SYNTAX_MESSAGE"/call [number]"); number = strval(params); if(playerVariables[playerid][pPhoneNumber] == -1) { SCM(playerid, COLOR_GREY, "You don't have a phone."); } else if(playerVariables[playerid][pPhoneNumber] == number) { SCM(playerid, COLOR_GREY, "You're trying to call yourself."); } else { if(playerVariables[playerid][pPhoneNumber] > 0) { if(playerVariables[playerid][pPhoneStatus] == 1) { if(playerVariables[playerid][pPhoneCredit] >= 3) { if(Mobile[playerid] == 255) { if(number == 112) { if(WantedID[playerid] != -1) { if(WantedIDTime[playerid] >= 1) { new killerid = WantedID[playerid]; if(playerVariables[killerid][pWarrants] < 6) { playerVariables[killerid][pWarrants]++; SetPlayerWantedLevel(killerid, playerVariables[killerid][pWarrants]); format(szMessage, sizeof(szMessage), "You have commited a crime: first degree murder. W: +1. Reporter: %s", playerVariables[playerid][pNormalName]); SCM(killerid, COLOR_RED, szMessage); format(playerVariables[killerid][pCrimeReason], 250, "%sfirst degree murdern", playerVariables[killerid][pCrimeReason]); } else { format(szMessage, sizeof(szMessage), "You have commited a crime: first degree murder. W: +1. Reporter: %s", playerVariables[playerid][pNormalName]); SCM(killerid, COLOR_RED, szMessage); } WantedIDTime[playerid] = -1; WantedID[playerid] = -1; SCM(playerid, -1, "This player has wanted now. Thank you for reporting the crime."); } } else { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); Mobile[playerid] = 911; SCM(playerid, COLOR_WHITE, "You've called Emergency services, please select the department you desire (i.e: LSPD, LSFMD)."); } } else if(number != -1) { foreach(Player, i) { new giveplayerid = i; if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(playerVariables[giveplayerid][pPhoneNumber] == number) { Mobile[playerid] = giveplayerid; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); if(playerVariables[playerid][pPhone] == 1) { format(string, sizeof(string), "* %s takes out their cellphone, and dials in a number.", szPlayerName, number); } else if(playerVariables[playerid][pPhone] == 2) { format(string, sizeof(string), "* %s takes out their iPhone, and dials in a number.", szPlayerName, number); } SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); nearByMessage(playerid, COLOR_PURPLE, string); if(playerVariables[playerid][pPhone] == 1) { SetPlayerAttachedObject(playerid,4,330,6, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); } else if(playerVariables[playerid][pPhone] == 2) { SetPlayerAttachedObject( playerid, 4, 18865, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone1 - phone1 } nearByMessage(i, COLOR_PURPLE, string); format(szMessage, sizeof(szMessage), "You are called by %s. Type /p(ickup) to respond to this call.", playerVariables[playerid][pNormalName]); SCM(giveplayerid, COLOR_YELLOW, szMessage); CellTime[playerid] = 1; return 1; } } } } } else SCM(playerid, COLOR_GREY, "(cellphone) *busy tone*"); } else SCM(playerid, COLOR_GREY, "You are currently in a call."); } else SCM(playerid, COLOR_GREY, "You have no remaining phone credit - visit a 24/7 to top it up."); } else SCM(playerid, COLOR_GREY, "You must switch your phone on first (/turn on)."); } else SCM(playerid, COLOR_GREY, "You don't have a phone."); } return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?:
  2. HasH

    Problema Dialog

    Am incercat sa fac sa apara si cate puncte premium am sa imi apara in shop si nu reusesc C:UsersIonutgamemodesgmi.pwn(5682) : error 035: argument type mismatch (argument 6) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Linia ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium points: {FFFF00}%d", pString,pointss, "Buy", "Exit"); if(strcmp(cmd, "/shop", true) == 0) { new pointss; playerVariables[playerid][pPremiumPoints] = pointss; new pString[ 2019 ]; pString[ 0 ] = EOS; strcat(pString, "{FFFFFF}Clear Warns - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Premium Account - {FFFF00}30 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear Faction Punish - {FFFF00}15 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Change Nickname - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 1 KM's - {FFFF00}25 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 2 KM's - {FFFF00}25 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 3 KM's - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 4 KM's - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clan - {FFFF00}50 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}iPhone - {FFFF00}5 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Hidden Color - {FFFF00}15 {FFFFFF}premium pointsn"); ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium points: {FFFF00}%d", pString,pointss, "Buy", "Exit"); return 1; }
  3. HasH

    Problema Dialog

    if(strcmp(cmd, "/shop", true) == 0) { ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium Shop:", String_Shop(), "Buy", "Exit"); String_Shop() { new pString[ 2019 ]; pString[ 0 ] = EOS; strcat(pString, "Clear Warns - {FFFF00}10 premium pointsn"); strcat(pString, "Premium Account - {FFFF00}30 premium pointsn"); strcat(pString, "Clear Faction Punish - {FFFF00}15 premium pointsn"); strcat(pString, "Change Nickname - {FFFF00}10 premium pointsn"); strcat(pString, "Clear car 1 KM's - {FFFF00}25 premium pointsn"); strcat(pString, "Clear car 2 KM's - 25 premium pointsn"); strcat(pString, "Clear car 3 KM's - 10 premium pointsn"); strcat(pString, "Clear car 4 KM's - 10 premium pointsn"); strcat(pString, "Clan - 50 premium pointsn"): strcat(pString, "iPhone - 5 premium pointsn"); strcat(pString, "Hidden Color - 15 premium pointsn"); return pString; } Am pus asa si imi da 26 de erori
  4. Problema intalnita (descriere): Salut am incercat sa bag si eu culori la dialog si nu merge daca bag mai putine culori cu {} merge daca bag mai multe pe acel dialog numai merge Ero(area / rile) / warning-(ul / urile): C:UsersIonutDesktopbuggedgamemodesgmi.pwn(5666) : error 075: input line too long (after substitutions) C:Usersgamemodesgmi.pwn(5667) : error 037: invalid string (possibly non-terminated string) C:Usersgamemodesgmi.pwn(5667) : error 017: undefined symbol "Exi" C:Usersgamemodesgmi.pwn(5668) : error 017: undefined symbol "t" C:Usersgamemodesgmi.pwn(5668) : warning 215: expression has no effect C:Usersgamemodesgmi.pwn(5668) : error 001: expected token: ";", but found ")" C:Usersgamemodesgmi.pwn(5668) : error 029: invalid expression, assumed zero C:Usersbuggedgamemodesgmi.pwn(5668) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors. Linia 5667 ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium Shop:", "Clear Warns - {FFFF00}10 premium pointsnPremium Account - {FFFF00}30 premium pointsnClear Faction Punish - {FFFF00}15 premium pointsnChange Nickname - {FFFF00}10 premium pointsnClear car 1 KM's - {FFFF00}25 premium pointsnClear car 2 KM's - 25 premium pointsnClear car 3 KM's - 10 premium pointsnClear car 4 KM's - 10 premium pointsnClan - 50 premium pointsniPhone - 5 premium pointsnHidden Color - 15 premium points", "Buy", "Exit"); Linia 5668 return 1; Liniile de cod / sursa / script-ul: Imagini / Video (optional): Ati incercat sa rezolvati singur?: Da am incercat sa bag string la dialog si tot nu merge.
  5. HasH

    Problema Rob

    gamemodesgmi.pwn(23275) : error 029: invalid expression, assumed zero gamemodesgmi.pwn(23275) : error 004: function "TimeForRob2" is not implemented Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Tot asa imi da Linia stock TimeForRob2() am pus si la inceput forward TimeForRob2();
  6. HasH

    Problema Rob

    gamemodesgmi.pwn(23275) : error 029: invalid expression, assumed zero gamemodesgmi.pwn(23275) : error 004: function "TimeForRob" is not implemented Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. linia public TimeForRob() Am pus forward la inceput forward TimeForRob()
  7. HasH

    Problema Rob

    Ma poate ajuta cineva va rog?
  8. HasH

    Problema Rob

    public TimeForRob() { for(new x= 0; x < MAX_PLAYERS; x++) { if(IsPlayerConnected(x)) { if(RobTime[x] > 0) { RobTime[x]--; if(RobTime[x] == 1) { new house; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); new randamount; randamount = 50000 * playerVariables[x][pLevel]; RobPrice[x] = randamount; playerVariables[x][pCheckpoint] = 8; SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!"); new wanted; wanted = random(10); if(wanted == 1) { SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!"); } else { playerVariables[x][pWarrants] = 6; format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]); SetPlayerWantedLevel(x, 6); format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]); sendDepartmentMessage(COLOR_RADIOCHAT, szMessage); } SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 ); playerVariables[x][pFreezeTime] = 0; playerVariables[x][pFreezeType] = 0; TogglePlayerControllable(x, 1); } } } } } gamemodesgm.pwn(23275) : error 029: invalid expression, assumed zero gamemodesgm.pwn(23275) : error 004: function "TimeForRob" is not implemented gamemodesgm.pwn(23277) : warning 219: local variable "x" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. 23275 - public TimeForRob() Probabil este de la forward dar l-am pus 23277 - for(new x= 0; x < MAX_PLAYERS; x++)
  9. HasH

    Problema Rob

    Gireada , daca stiam nu mai postam aici .Multumesc pentru sfat.dar eu sunt incepator..
  10. HasH

    Problema Rob

    http://pastebin.com/mQKcZDpP
  11. HasH

    Problema Rob

    RobTime[playerid] = 11; ? Asta este la comanda /rob
  12. HasH

    Problema Rob

    Problema intalnita (descriere):Salut , am si eu o problema legata de rob , cand ma duc in banca si dau rob imi apare un mesaj " You are now robbing the business, wait 10 seconds to take the money!" Si ramane asa nu se mai intampla nimic stau si o ora si raman blocat Ero(area / rile) / warning-(ul / urile): - Liniile de cod / sursa / script-ul CMD:rob(playerid, params[]) { if(playerVariables[playerid][pWarrants] == 0) { if(playerVariables[playerid][pDonate] == 0) { if(playerVariables[playerid][pRobPoints] >= 10) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 10; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else if(playerVariables[playerid][pDonate] == 1) { if(playerVariables[playerid][pRobPoints] >= 8) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 8; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else SendClientMessage(playerid, COLOR_GREY, "You don't have enough rob points."); } else SendClientMessage(playerid, COLOR_GREY, "You can't rob the bank because you are a wanted player."); return 1; } if(RobTime[x] > 0) { RobTime[x]--; if(RobTime[x] == 1) { new house; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); new randamount; randamount = 50000 * playerVariables[x][pLevel]; RobPrice[x] = randamount; playerVariables[x][pCheckpoint] = 8; SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!"); new wanted; wanted = random(10); if(wanted == 1) { SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!"); } else { playerVariables[x][pWarrants] = 6; format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]); SetPlayerWantedLevel(x, 6); format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]); sendDepartmentMessage(COLOR_RADIOCHAT, szMessage); } SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 ); playerVariables[x][pFreezeTime] = 0; playerVariables[x][pFreezeType] = 0; TogglePlayerControllable(x, 1); } }
  13. HasH

    Camera

    Adrian eu vreau sa fac la mai multe tutoriale vreau sa pun camera unde vreau eu Problema este ca nu stiu cum se face se da save sau numai stiu eu ce la asta m.am referit, si ce coordonate iei din acel save..
  14. HasH

    Camera

    Adrian si cum fac sa fac la mai multe tutoriale ? tu cum faci dai /save ceva imi poti spune te rog?
  15. HasH

    Camera

    Nu e de la coordonate
  16. HasH

    Camera

    Asa vreau eu sa fac cum este in acea imagine dar mie imi apare asa http://tinypic.com/r/211tbte/8 SetPlayerCameraPos(i, 596.3768,-1986.2084,108.7586); SetPlayerCameraLookAt(i, 596.3768,-1986.2084,108.7586); SetPlayerPos(i, 596.3768,-1986.2084,108.7586);
  17. HasH

    Camera

    Problemă întâlnită (descriere):Salut cum as putea sa salvez si eu aceste coordonate de la aceasta camera vreau sa pun la tutorial si nu stiu cum as putea sa le salvez pentru InterpolateCameraPos InterpolateCameraLookAt SetPlayerPos Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul: Imagini / Video (optional): http://tinypic.com/r/ifc41h/8 Aţi încercat să rezolvaţi singur?: am incercat sa dau save si sa pun coordonatele dar ma da in apa
  18. Salut am incercat sa pun si eu pickupuri la case cu casutele verzi si albastre Totul bine , pana dau /buyhouse sau /sellhousetostate se pune una peste alta.. CMD:buyhouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz,string[100],playername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new h = 1; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel]) { format(string, sizeof(string), "You must be Level %d to purchase this.", HouseInfo[h][hLevel]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You already own a house, type /sellhouse if you want to buy this one."); if(GetPlayerCash(playerid) >= HouseInfo[h][hValue]) { InHouse[playerid] = h; PlayerInfo[playerid][pPhousekey] = h; PlayerInfo[playerid][pRented] = -1; HouseInfo[h][hOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255); GivePlayerCash(playerid,-HouseInfo[h][hValue]); SetPlayerInterior(playerid,HouseInfo[h][hInterior]); SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]); SetPlayerVirtualWorld(playerid,HouseInfo[h][hVirtual]); GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and press enter", 5000, 3); PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior]; PlayerInfo[playerid][pLocal] = h; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !"); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !"); Update(playerid,pCashx); Update(playerid,pPhousekeyx); OnPropTextdrawUpdate(1,h); new str2[256]; format(str2,sizeof(str2),"UPDATE `houses` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",sendername,HouseInfo[h][hID]); mysql_query(SQL,str2); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have the cash for that."); return 1; } } } } return 1; } CMD:sellhousetostate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new playername[25],sendername[25]; GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPhousekey] == 999) return SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}You don't own a house."); if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { new house = PlayerInfo[playerid][pPhousekey]; HouseInfo[house][hHel] = 0; HouseInfo[house][hArm] = 0; HouseInfo[house][hLock] = 0; HouseInfo[house][hOwned] = 0; PlayerInfo[playerid][pRented] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255); ConsumingMoney[playerid] = 1; new cashh = floatround(floatmul(HouseInfo[house][hValue],0.70),floatround_ceil); GivePlayerCash(playerid,cashh); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new string[70]; format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", cashh); GameTextForPlayer(playerid, string, 10000, 3); PlayerInfo[playerid][pPhousekey] = 999; PlayerInfo[playerid][pRented] = -1; if(PlayerInfo[playerid][pLocal] == house) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); PlayerInfo[playerid][pInt] = 0; } Update(playerid,pCashx); Update(playerid,pRentedx); Update(playerid,pPhousekeyx); OnPropTextdrawUpdate(1,house); new str2[256]; format(str2,sizeof(str2),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='0',`Owner`='The State' WHERE `ID`='%d'",HouseInfo[house][hID]); mysql_query(SQL,str2); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}You don't own a house."); } return 1; } public OnPropTextdrawUpdate(update, h) { new PropertyString[256]; if(update == 1) { if(HouseInfo[h][hOwned] == 0) { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{347235}House {FFFFFF}%d n{347235}This house is for sale nDescription: {FFFFFF}%s n{347235}Cost: {FFFFFF}$%s n{347235}Level: {FFFFFF}%d n{347235}to buy this house type /buyhouse",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } else if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 1) { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{FFFFFF}%sn {347235}House {FFFFFF}%d n{347235}This house is owned by {FFFFFF}%s n{347235}Rent: {FFFFFF}$%s n{347235}Level: {FFFFFF}%d n{347235}to rent a room type /rentroom",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } else { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{FFFFFF}%sn {347235}House {FFFFFF}%d n{347235}This house is owned by {FFFFFF}%s n{347235}Level: {FFFFFF}%d",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner], HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } } }
×
×
  • 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.