Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_MOVEBIZ: {
- if(!response) return true;
- new Float: Pos[3], id = GetPVarInt(playerid, "MoveID");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- gQuery[0] = EOS;
- switch(listitem) {
- case 0: {
- if(GetPlayerInterior(playerid) == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu esti intr-un interior!");
- BizzInfo[id][bExitX] = Pos[0];
- BizzInfo[id][bExitY] = Pos[1];
- BizzInfo[id][bExitZ] = Pos[2];
- BizzInfo[id][bInterior] = GetPlayerInterior(playerid);
- SCM(playerid, COLOR_LGREEN, "Interiorul afacerii a fost modificat!");
- UpdateLabel(2, id);
- mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `bizz` SET `Exitx`='%f', `Exity`='%f', `Exitz`='%f', `Interior`='%d' WHERE `ID`='%d'", Pos[0], Pos[1], Pos[2], GetPlayerInterior(playerid), BizzInfo[id][bID]);
- mysql_tquery(SQL, gQuery, "", "");
- }
- case 1: {
- if(GetPlayerInterior(playerid) != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Esti intr-un interior!");
- DestroyDynamicPickup(BizzInfo[id][bPickup]);
- BizzInfo[id][bEntranceX] = Pos[0];
- BizzInfo[id][bEntranceY] = Pos[1];
- BizzInfo[id][bEntranceZ] = Pos[2];
- BizzInfo[id][bPickup] = CreateDynamicPickup(BizzInfo[id][bType] != 19 ? 1239 : 1318, 1, BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ], -1, -1, -1, 100.0);
- SCM(playerid, COLOR_LGREEN, "Exteriorul afacerii a fost modificat!");
- UpdateLabel(2, id);
- mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `bizz` SET `Entrancex`='%f', `Entrancey`='%f', `Entrancez`='%f' WHERE `ID`='%d'", Pos[0], Pos[1], Pos[2], BizzInfo[id][bID]);
- mysql_tquery(SQL, gQuery, "", "");
- }
- }
- }
Add Comment
Please, Sign In to add comment