Jump to content

Putin Ajutor va rog


Rby Robert

Recommended Posts

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;
}

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.

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