Jump to content

Ajutatima va rog


Raul Adrian

Recommended Posts

YCMD:asellapartament(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 6) return 1;
    new i;
    if(sscanf(params, "i", i)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/asellapartament <id>");
    if(i < 1 || i > 24) return 1;

    apartamentInfo[][User] = -1;
    format(apartamentInfo[i][apOwner], 32, "The State");
    apartamentInfo[][ Value] = 10000000;
    
    update_apartament_int(i, "Value", 10000000);
    update_apartament_int(i, "UserID", -1);
    update_apartament_str(i, "Owner", "The State");
            
    refresh_label(i);

    new string[128];
    format(string, sizeof(string), "Warning: %s a vandut apartamentul %d la stat.", GetName(playerid), i);
    SendAdminMessage(COLOR_LIGHTRED, string, 1);
    return 1;
}

Link to comment
Share on other sites

13 hours ago, Raul Adrian said:

YCMD:asellapartament(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 6) return 1;
    new i;
    if(sscanf(params, "i", i)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/asellapartament <id>");
    if(i < 1 || i > 24) return 1;

    apartamentInfo[][User] = -1;
    format(apartamentInfo[i][apOwner], 32, "The State");
    apartamentInfo[][ Value] = 10000000;
    
    update_apartament_int(i, "Value", 10000000);
    update_apartament_int(i, "UserID", -1);
    update_apartament_str(i, "Owner", "The State");
            
    refresh_label(i);

    new string[128];
    format(string, sizeof(string), "Warning: %s a vandut apartamentul %d la stat.", GetName(playerid), i);
    SendAdminMessage(COLOR_LIGHTRED, string, 1);
    return 1;
}

Nu sunt sigur dar incearca sa pui new i, apartamentinfo, user;

Edited by cobalt_thekiller
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By halecata
      am uitat parola de la panel b hood si nu stiu cum sa resetez parola                                                                                                                                                                                                         nu stiu sa resetez contul de panel b hood                                                                                                                                                                                                                                                   nu stiu cum fac un cont nou de panel b hood plssss help
       
    • By AlexCelTare
      stie cineva vreun fs sau cum sa fac sa nu se mai reseteze banii la playeri cand dau relog? va rog
    • By Rby Robert
      Am un gamemode de la un prieten la care a lucrat el acum mi la dat mie sa lucrez eu pe el am facut ceea ce am stiu am dar ma bate ceva cand dau in /v nu imi apare despawn car ma poate ajuta cineva aici aveti comanda 
      CMD:v(playerid, params[])
      {
          if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
          if(VehiclesCount(playerid) == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai vehicule personale.");
          new str2[1500],str[200],id[50],vip[30],title[35],rainbow[30],premium[30], stage[30];
          strcat(str2, "Model\tStatus\tUpgrades\tID\n");
          for(new x = 0; x < PlayerInfo[playerid][pSlots]; x++) {
              if(PlayerInfo[playerid][pCarKey][x] != 0) {
                  new ide = veh_ArrayID(PlayerInfo[playerid][pCarKey][x]);
                  if((playerCarsSpawned[playerid][x]) == true ) format(id,50,"%d",CarInfo[ide][cInGameID]); else format(id,50,"{ffffff}not spawned");
                  if(CarInfo[ide][cVip] == true) format(vip, 30, "{FFE802}[VIP] "); else format(vip,3,"");
                  if(CarInfo[ide][cHaveRainBow] == true) format(rainbow, 30, "{791DD5}[R] "); else format(rainbow,3,"");
                  if(CarInfo[ide][cPremium] == 1) format(premium, 30, "{F28644}[P] "); else format(premium,3,"");
                  if(CarInfo[ide][cStage] > 0) format(stage, sizeof(stage), "{509AE4}[S: %d/3]", CarInfo[ide][cStage]); else format(stage,3,"");
                  format(str, 200, "%s\t%s\t%s%s%s%s \t%s\n",aVehicleNames[playerCarsModel[playerid][x] - 400],(playerCarsSpawned[playerid][x]) ? ("{33AA33}[spawned]") : ("{9D0000}[despawned]"),vip,rainbow,premium,stage,id);
                  strcat(str2,str);
              }
              else strcat(str2,"\n[ empty ]\n");
          }
          format(title,sizeof title,"Your vehicles [%d/%d]",VehiclesCount(playerid),PlayerInfo[playerid][pSlots]);
          ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS, title, str2, "Select","Exit");
          return 1;
      }
    • By IonutAdv
      Deci nu ințeleg ce are ma ajutați va rog?

    • By GamerulFOX
      Salut cine poate sa imi faca o comanda /jobs ? Care sa aibe doar un joc si sa scrie in ea //aici pui cordonatele ! Va rog !
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.