Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if((dialogid == TOYS) && response)
- {
- if(listitem == 0)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, WEARTOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- else if(listitem == 1)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- else if(listitem == 2)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, DELETETOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Delete", "Cancel");
- }
- }
- if((dialogid == EDITTOYS) && response)
- {
- if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
- {
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Edit", "Woops! You don't have anything on that slot", "OK", "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Position your camera differently to better see where your editing.");
- slotselection[playerid] = listitem;
- ShowEditMenu(playerid);
- }
- }
- if((dialogid == EDITTOYS2))
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, EDITTOYSBONE, DIALOG_STYLE_LIST, "Select a Bone", "Spine\nHead\nLeft upper arm\nRight upper arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot\nRight calf\nLeft calf\nLeft forearm\nRight forearm\nLeft clavicle\nRight clavicle\nNeck\nJaw", "Select", "Cancel");
- }
- else if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Hold your Space Bar to move the camera,Press ESC to cancel the editor");
- EditAttachedObject(playerid, slotselection[playerid]);
- }
- }
- else
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- }
- if(dialogid == EDITTOYSBONE)
- {
- if(response)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = listitem+1;
- }
- ShowEditMenu(playerid);
- }
- if((dialogid == WEARTOY) && response)
- {
- if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
- {
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Attach/Deattach", "Woops! You don't have anything to put on from that slot", "OK", "");
- }
- else
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(string, sizeof(string), "Successfully dettached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
- SendClientMessage(playerid, COLOR_RED, string);
- RemovePlayerAttachedObject(playerid, listitem);
- }
- else
- {
- if(listitem == 5 && PlayerInfo[playerid][pDonator] < 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Pearl VIP+ Donator to use that slot!");
- if(listitem == 6 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Emerald VIP+ Donator to use that slot!");
- if(listitem == 7 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Diamond VIP+ Donator to use that slot!");
- if(PlayerToyInfo[playerid][listitem][ptScaleX] == 0) {
- PlayerToyInfo[playerid][listitem][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][listitem][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][listitem][ptScaleZ] = 1.0;
- }
- SetPlayerAttachedObject(playerid, listitem, PlayerToyInfo[playerid][listitem][ptModelID], PlayerToyInfo[playerid][listitem][ptBone], PlayerToyInfo[playerid][listitem][ptPosX], PlayerToyInfo[playerid][listitem][ptPosY], PlayerToyInfo[playerid][listitem][ptPosZ],
- PlayerToyInfo[playerid][listitem][ptRotX], PlayerToyInfo[playerid][listitem][ptRotY], PlayerToyInfo[playerid][listitem][ptRotZ], PlayerToyInfo[playerid][listitem][ptScaleX], PlayerToyInfo[playerid][listitem][ptScaleY], PlayerToyInfo[playerid][listitem][ptScaleZ]);
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(string, sizeof(string), "Successfully attached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- }
- if((dialogid == DELETETOY) && response)
- {
- PlayerToyInfo[playerid][listitem][ptModelID] = 0;
- PlayerToyInfo[playerid][listitem][ptBone] = 0;
- PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
- if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
- {
- RemovePlayerAttachedObject(playerid, listitem);
- }
- format(string, sizeof(string), "You have deleted your toy in slot %d", listitem);
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu", string, "OK", "");
- }
- if((dialogid == BUYTOYSCOP) && response)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSCOP2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYSCOP2) && response)
- {
- // (TEMPORARY - ZHAO NOTE) NO VIP added yet
- /*if(listitem >= 3 && PlayerInfo[playerid][pDonator] < 1 || listitem >= 3 && PlayerInfo[playerid][pGarage] == 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Pearl VIP + to use that slot!");
- if(listitem >= 4 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Emerald VIP + to use that slot!");
- if(listitem >= 5 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Diamond VIP + to use that slot!");
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessage(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");*/
- slotselection[playerid] = listitem;
- new stringg[1024];
- for(new x;x<sizeof(HoldingObjectsCop);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsCop[x][holdingmodelname], HoldingObjectsCop[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSCOP3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYSCOP3) && response)
- {
- if(GetPlayerCash(playerid) < HoldingObjectsCop[listitem][holdingprice])
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjectsCop[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsCop[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsCop[listitem][holdingmodelname], HoldingObjectsCop[listitem][holdingprice], slotselection[playerid]);
- SendClientMessage(playerid, COLOR_RED, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
- if((dialogid == BUYTOYSGOLD) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYSGOLD2) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessageEx(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
- slotselection[playerid] = listitem;
- new stringg[5256];
- for(new x;x<sizeof(HoldingObjectsAll);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsAll[x][holdingmodelname], HoldingObjectsAll[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYSGOLD3) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
- if(GetPlayerCash(playerid) < HoldingObjects[listitem][holdingprice])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjectsAll[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsAll[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsAll[listitem][holdingmodelname], HoldingObjectsAll[listitem][holdingprice], slotselection[playerid]);
- SendClientMessageEx(playerid, COLOR_RED, string);
- SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement