U obou techto kodu kdyz je ulozim mi to napise fatal error 100: cannot read from file: "zcmd" ( !!! Ve prostredku je napsany druhy kod ... je to docela dost dlouhy tak aby jste vedeli
ShowPlayerDialog(playerid, DIALOG_EDITID, DIALOG_STYLE_INPUT, "House ID", "{FFFFFF}Please, input below house ID wich you want to edit:", "Continue", "Exit");
ShowPlayerDialog(playerid, DIALOG_EDITID, DIALOG_STYLE_INPUT, "House ID", "{FFFFFF}Please, input below house ID wich you want to edit:", "Continue", "Exit");
Dotaz
end_fildoOx 0
Ahoj, prosim opravil by mi nekdo z vas kod? :/
U obou techto kodu kdyz je ulozim mi to napise fatal error 100: cannot read from file: "zcmd" ( !!! Ve prostredku je napsany druhy kod ... je to docela dost dlouhy tak aby jste vedeli
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <Dini>
//------------------------------------------------------------------------------
#define MAX_CARS 1000
#define DEFAULT_PRICE 100000
//------------------------------------------------------------------------------
enum vInfo
{
vOwner[MAX_PLAYER_NAME],
vID,
vColor1,
vColor2,
Float:vX,
Float:vY,
Float:vZ,
Float:vA
}
//------------------------------------------------------------------------------
new VehicleInfo[MAX_CARS][vInfo], vid;
new Text:Textdraw[8];
new Infernus[MAX_PLAYERS], Sultan[MAX_PLAYERS], NRG[MAX_PLAYERS], Cheetah[MAX_PLAYERS], Banshee[MAX_PLAYERS];
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
LoadVehicleForPlayer(playerid);
return 1;
}
//------------------------------------------------------------------------------
CMD:vhelp(playerid, params[])
{
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, "{15FF00}--------------- VEHICLE COMMANDS ---------------");
SendClientMessage(playerid, -1, "{FFCC33}/buycar {FFFFFF}- Buy a car from h-Dealership.");
SendClientMessage(playerid, -1, "{FFCC33}/close {FFFFFF}- Exit from h-Dealership menu.");
SendClientMessage(playerid, -1, "{FFCC33}/sell {FFFFFF}- You can sell your car.");
SendClientMessage(playerid, -1, "{FFCC33}/park {FFFFFF}- Updates your vehicle's position.");
SendClientMessage(playerid, -1, "{FFCC33}/lock {FFFFFF}- Locks your vehicle.");
SendClientMessage(playerid, -1, "{FFCC33}/unlock {FFFFFF}- Unlocks your vehicle.");
SendClientMessage(playerid, -1, "{FFCC33}/color {FFFFFF}- Change your vehicle color.");
SendClientMessage(playerid, -1, "{15FF00}------------------------------------------------");
return 1;
}
//------------------------------------------------------------------------------
CMD:buycar(playerid, params[])
{
TextDrawShowForPlayer(playerid, Textdraw[0]);
TextDrawShowForPlayer(playerid, Textdraw[1]);
TextDrawShowForPlayer(playerid, Textdraw[2]);
TextDrawShowForPlayer(playerid, Textdraw[3]);
TextDrawShowForPlayer(playerid, Textdraw[4]);
TextDrawShowForPlayer(playerid, Textdraw[5]);
TextDrawShowForPlayer(playerid, Textdraw[6]);
TextDrawShowForPlayer(playerid, Textdraw[7]);
SelectTextDraw(playerid, 0xFFFFFFFF);
SendClientMessage(playerid, -1, "{FF6136}Info: Welcome to h-Dealership, please select one car to buy, or exit with command /close.");
return 1;
}
//------------------------------------------------------------------------------
CMD:close(playerid, params[])
{
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
CancelSelectTextDraw(playerid);
SendClientMessage(playerid, -1, "{FF6136}Info: You exited from h-Dealership, thanks for used it!");
return 1;
}
//------------------------------------------------------------------------------
CMD:park(playerid, params[])
{
new name[MAX_PLAYER_NAME], file[50], Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "Vehicles/%s.ini", name);
if(!fexist(file)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You don't have any car, so you can't use this command.");
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
if(fexist(file))
{
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
SendClientMessage(playerid, -1, "{FF6136}Info: Your car's position has been updated, car's position will be here.");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:lock(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new veh = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You have to be in a vehicle.");
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(veh, engine, lights, alarm, 1, bonnet, boot, objective);
SendClientMessage(playerid, -1, "{FF6136}Info: You locked your car. Nobody can enter in it.");
return 1;
}
//------------------------------------------------------------------------------
CMD:unlock(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new veh = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You have to be in a vehicle.");
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(veh, engine, lights, alarm, 0, bonnet, boot, objective);
SendClientMessage(playerid, -1, "{FF6136}Info: You unlocked your car. Everybody can enter in it.");
return 1;
}
//------------------------------------------------------------------------------
CMD:sell(playerid, params[])
{
new name[MAX_PLAYER_NAME], file[50], string[144];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "Vehicles/%s.ini", name);
if(!fexist(file)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You don't own any car.");
VehicleInfo[vid][vID] = -1;
VehicleInfo[vid][vX] = -1;
VehicleInfo[vid][vY] = -1;
VehicleInfo[vid][vZ] = -1;
VehicleInfo[vid][vA] = -1;
VehicleInfo[vid][vColor1] = -1;
VehicleInfo[vid][vColor2] = -1;
VehicleInfo[vid][vOwner] = 0;
dini_Remove(file);
format(string, sizeof(string), "{FF6136}Info: You sold your car, and you received %d $.", DEFAULT_PRICE / 2);
SendClientMessage(playerid, -1, string);
GivePlayerMoney(playerid, DEFAULT_PRICE / 2);
return 1;
}
//------------------------------------------------------------------------------
CMD:color(playerid, params[])
{
new name[MAX_PLAYER_NAME], file[50], string[144], color1, color2;
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "Vehicles/%s.ini", name);
if(!fexist(file)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You don't own any car.");
if(sscanf(params, "dd", color1, color2)) return SendClientMessage(playerid, -1, "{FF0000}USAGE: {FFFFFF}/Color [Color1] [Color2]");
VehicleInfo[vid][vColor1] = color1;
VehicleInfo[vid][vColor2] = color2;
format(string, sizeof(string), "{FF6136}Info: Your car's colors has been changed to: %d, %d.", color1, color2);
SendClientMessage(playerid, -1, string);
dini_IntSet(file, "Color 1", color1);
dini_IntSet(file, "Color 2", color2);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
new Float:X, Float:Y, Float:Z, Float:A, file[50], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
format(file, sizeof(file), "Vehicles/%s.ini", name);
if(clickedid == Textdraw[7])
{
SetRandomCarForPlayer(playerid);
}
else if(clickedid == Textdraw[6])
{
if(GetPlayerMoney(playerid) < DEFAULT_PRICE) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You don't have enough money to buy this car.");
if(fexist(file)) return SendClientMessage(playerid, -1, "{FF0000]ERROR: {FFFFFF}You already have a vehicle.");
if(Infernus[playerid] == 1)
{
dini_Create(file);
dini_Set(file, "Owner", name);
dini_IntSet(file, "Vehicle ID", 411);
dini_IntSet(file, "Color 1", 1);
dini_IntSet(file, "Color 2", 1);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
VehicleInfo[vid][vID] = 411;
VehicleInfo[vid][vOwner] = name;
VehicleInfo[vid][vColor1] = 1;
VehicleInfo[vid][vColor2] = 1;
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
vid++;
new veh;
veh = AddStaticVehicle(411, X, Y, Z, A, 1, 1);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, -1, "{FF6136}Info: Congrats! You bought a Infernus car. Type /vhelp for more information.");
GivePlayerMoney(playerid, -DEFAULT_PRICE);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
}
else if(Sultan[playerid] == 1)
{
dini_Create(file);
dini_Set(file, "Owner", name);
dini_IntSet(file, "Vehicle ID", 560);
dini_IntSet(file, "Color 1", 1);
dini_IntSet(file, "Color 2", 1);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
VehicleInfo[vid][vID] = 560;
VehicleInfo[vid][vOwner] = name;
VehicleInfo[vid][vColor1] = 1;
VehicleInfo[vid][vColor2] = 1;
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
vid++;
new veh;
veh = AddStaticVehicle(560, X, Y, Z, A, 1, 1);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, -1, "{FF6136}Info: Congrats! You bought a Sultan car. Type /vhelp for more information.");
GivePlayerMoney(playerid, -DEFAULT_PRICE);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
}
else if(NRG[playerid] == 1)
{
dini_Create(file);
dini_Set(file, "Owner", name);
dini_IntSet(file, "Vehicle ID", 522);
dini_IntSet(file, "Color 1", 1);
dini_IntSet(file, "Color 2", 1);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
VehicleInfo[vid][vID] = 522;
VehicleInfo[vid][vOwner] = name;
VehicleInfo[vid][vColor1] = 1;
VehicleInfo[vid][vColor2] = 1;
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
vid++;
new veh;
veh = AddStaticVehicle(522, X, Y, Z, A, 1, 1);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, -1, "{FF6136}Info: Congrats! You bought a NRG-500. Type /vhelp for more information.");
GivePlayerMoney(playerid, -DEFAULT_PRICE);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
}
else if(Cheetah[playerid] == 1)
{
dini_Create(file);
dini_Set(file, "Owner", name);
dini_IntSet(file, "Vehicle ID", 415);
dini_IntSet(file, "Color 1", 1);
dini_IntSet(file, "Color 2", 1);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
VehicleInfo[vid][vID] = 415;
VehicleInfo[vid][vOwner] = name;
VehicleInfo[vid][vColor1] = 1;
VehicleInfo[vid][vColor2] = 1;
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
vid++;
new veh;
veh = AddStaticVehicle(415, X, Y, Z, A, 1, 1);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, -1, "{FF6136}Info: Congrats! You bought a Cheetah car. Type /vhelp for more information.");
GivePlayerMoney(playerid, -DEFAULT_PRICE);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
}
else if(Banshee[playerid] == 1)
{
dini_Create(file);
dini_Set(file, "Owner", name);
dini_IntSet(file, "Vehicle ID", 429);
dini_IntSet(file, "Color 1", 1);
dini_IntSet(file, "Color 2", 1);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Facing Angle", A);
VehicleInfo[vid][vID] = 429;
VehicleInfo[vid][vOwner] = name;
VehicleInfo[vid][vColor1] = 1;
VehicleInfo[vid][vColor2] = 1;
VehicleInfo[vid][vX] = X;
VehicleInfo[vid][vY] = Y;
VehicleInfo[vid][vZ] = Z;
VehicleInfo[vid][vA] = A;
vid++;
new veh;
veh = AddStaticVehicle(429, X, Y, Z, A, 1, 1);
PutPlayerInVehicle(playerid, veh, 0);
SendClientMessage(playerid, -1, "{FF6136}Info: Congrats! You bought a Banshee car. Type /vhelp for more information.");
GivePlayerMoney(playerid, -DEFAULT_PRICE);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
TextDrawHideForPlayer(playerid, Textdraw[4]);
TextDrawHideForPlayer(playerid, Textdraw[5]);
TextDrawHideForPlayer(playerid, Textdraw[6]);
TextDrawHideForPlayer(playerid, Textdraw[7]);
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
Textdraw[0] = TextDrawCreate(138.399993, 172.479995, "LD_SPAC:white");
TextDrawLetterSize(Textdraw[0], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[0], 362.400024, 141.866653);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], 255);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawFont(Textdraw[0], 4);
//--------------------------------------------------------------------------
Textdraw[1] = TextDrawCreate(160.800003, 162.773345, "h-Dealership");
TextDrawLetterSize(Textdraw[1], 0.713200, 2.413866);
TextDrawAlignment(Textdraw[1], 1);
TextDrawColor(Textdraw[1], -1);
TextDrawSetShadow(Textdraw[1], 0);
TextDrawSetOutline(Textdraw[1], 1);
TextDrawBackgroundColor(Textdraw[1], 51);
TextDrawFont(Textdraw[1], 3);
TextDrawSetProportional(Textdraw[1], 1);
//--------------------------------------------------------------------------
Textdraw[2] = TextDrawCreate(146.400009, 212.053329, "Vehicle:");
TextDrawLetterSize(Textdraw[2], 0.578800, 2.690133);
TextDrawAlignment(Textdraw[2], 1);
TextDrawColor(Textdraw[2], -1);
TextDrawSetShadow(Textdraw[2], 0);
TextDrawSetOutline(Textdraw[2], 1);
TextDrawBackgroundColor(Textdraw[2], 51);
TextDrawFont(Textdraw[2], 2);
TextDrawSetProportional(Textdraw[2], 1);
//--------------------------------------------------------------------------
Textdraw[3] = TextDrawCreate(265.599914, 213.546661, "Infernus");
TextDrawLetterSize(Textdraw[3], 0.585999, 2.585600);
TextDrawAlignment(Textdraw[3], 1);
TextDrawColor(Textdraw[3], -5963521);
TextDrawSetShadow(Textdraw[3], 0);
TextDrawSetOutline(Textdraw[3], 1);
TextDrawBackgroundColor(Textdraw[3], 51);
TextDrawFont(Textdraw[3], 2);
TextDrawSetProportional(Textdraw[3], 1);
//--------------------------------------------------------------------------
Textdraw[4] = TextDrawCreate(149.599990, 249.386611, "Price:");
TextDrawLetterSize(Textdraw[4], 0.608399, 2.481065);
TextDrawAlignment(Textdraw[4], 1);
TextDrawColor(Textdraw[4], -1);
TextDrawSetShadow(Textdraw[4], 0);
TextDrawSetOutline(Textdraw[4], 1);
TextDrawBackgroundColor(Textdraw[4], 51);
TextDrawFont(Textdraw[4], 2);
TextDrawSetProportional(Textdraw[4], 1);
//--------------------------------------------------------------------------
Textdraw[5] = TextDrawCreate(238.399993, 251.626647, "100,000 $");
TextDrawLetterSize(Textdraw[5], 0.502000, 2.152532);
TextDrawAlignment(Textdraw[5], 1);
TextDrawColor(Textdraw[5], -5963521);
TextDrawSetShadow(Textdraw[5], 0);
TextDrawSetOutline(Textdraw[5], 1);
TextDrawBackgroundColor(Textdraw[5], 51);
TextDrawFont(Textdraw[5], 2);
TextDrawSetProportional(Textdraw[5], 1);
//--------------------------------------------------------------------------
Textdraw[6] = TextDrawCreate(190.399963, 291.946655, "Buy");
TextDrawLetterSize(Textdraw[6], 0.641199, 2.421334);
TextDrawAlignment(Textdraw[6], 1);
TextDrawColor(Textdraw[6], 16711935);
TextDrawSetShadow(Textdraw[6], 0);
TextDrawSetOutline(Textdraw[6], 1);
TextDrawBackgroundColor(Textdraw[6], 51);
TextDrawFont(Textdraw[6], 2);
TextDrawSetProportional(Textdraw[6], 1);
TextDrawSetSelectable(Textdraw[6], true);
//--------------------------------------------------------------------------
Textdraw[7] = TextDrawCreate(314.400024, 291.199951, "Continue");
TextDrawLetterSize(Textdraw[7], 0.582800, 2.540798);
TextDrawAlignment(Textdraw[7], 1);
TextDrawColor(Textdraw[7], 16711935);
TextDrawSetShadow(Textdraw[7], 0);
TextDrawSetOutline(Textdraw[7], 1);
TextDrawBackgroundColor(Textdraw[7], 51);
TextDrawFont(Textdraw[7], 2);
TextDrawSetProportional(Textdraw[7], 1);
TextDrawSetSelectable(Textdraw[7], true);
return 1;
}
//------------------------------------------------------------------------------
stock SetRandomCarForPlayer(playerid)
{
new car = random(5), string[20];
if(car == 0) return SetRandomCarForPlayer(playerid);
if(car == 1)
{
format(string, sizeof(string), "Infernus");
TextDrawSetString(Textdraw[3], string);
Infernus[playerid] = 1;
}
else if(car == 2)
{
format(string, sizeof(string), "Sultan");
TextDrawSetString(Textdraw[3], string);
Sultan[playerid] = 1;
}
else if(car == 3)
{
format(string, sizeof(string), "NRG-500");
TextDrawSetString(Textdraw[3], string);
NRG[playerid] = 1;
}
else if(car == 4)
{
format(string, sizeof(string), "Cheetah");
TextDrawSetString(Textdraw[3], string);
Cheetah[playerid] = 1;
}
else if(car == 5)
{
format(string, sizeof(string), "Banshee");
TextDrawSetString(Textdraw[3], string);
Banshee[playerid] = 1;
}
return 1;
}
//------------------------------------------------------------------------------
stock LoadVehicleForPlayer(playerid)
{
new name[MAX_PLAYER_NAME], file[50];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "Vehicles/%s.ini", name);
if(fexist(file))
{
VehicleInfo[vid][vID] = dini_Int(file, "Vehicle ID");
VehicleInfo[vid][vColor1] = dini_Int(file, "Color 1");
VehicleInfo[vid][vColor2] = dini_Int(file, "Color 2");
VehicleInfo[vid][vX] = dini_Float(file, "Position X");
VehicleInfo[vid][vY] = dini_Float(file, "Position Y");
VehicleInfo[vid][vZ] = dini_Float(file, "Position Z");
VehicleInfo[vid][vA] = dini_Float(file, "Facing Angle");
AddStaticVehicle(VehicleInfo[vid][vID], VehicleInfo[vid][vX], VehicleInfo[vid][vY], VehicleInfo[vid][vZ], VehicleInfo[vid][vA], VehicleInfo[vid][vColor1], VehicleInfo[vid][vColor2]);
printf("%s's vehicle ID: %d - LOADED", name, VehicleInfo[vid][vID]);
strmid(VehicleInfo[vid][vOwner], dini_Get(file, "Owner"), false, strlen(dini_Get(file, "Owner")), MAX_PLAYER_NAME);
}
}
//------------------------------------------------------------------------------
DRUHEJ KOD!!!
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <Dini>
//------------------------------------------------------------------------------
#define MAX_HOUSES 1000
//------------------------------------------------------------------------------
#define DIALOG_EDITID 300
#define DIALOG_EDIT 301
#define DIALOG_EDITPRICE 302
#define DIALOG_EDITINTERIOR 303
//------------------------------------------------------------------------------
enum hInfo
{
hPrice,
hInterior,
hOwned,
hLocked,
hPick,
Text3D:hLabel,
hOwner[MAX_PLAYER_NAME],
Float:hX,
Float:hY,
Float:hZ,
Float:hEnterX,
Float:hEnterY,
Float:hEnterZ
}
//------------------------------------------------------------------------------
new HouseInfo[MAX_HOUSES][hInfo];
new houseid;
new InHouse[MAX_PLAYERS][MAX_HOUSES];
new hid;
//------------------------------------------------------------------------------
CMD:createhouse(playerid, params[])
{
new Price, Level, string[144], Float:X, Float:Y, Float:Z, labelstring[144], file[50];
GetPlayerPos(playerid, X, Y, Z);
if(sscanf(params, "ii", Price, Level)) return SendClientMessage(playerid, -1, "{FF0000}USAGE: {FFFFFF}/CreateHouse [Price] [Level]");
if(Price > 1000000 || Price < 1) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}Invalid Price. [1 - 10,000,000]");
if(Level > 5 || Level < 1) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}Invalid Level. [1 - 5]");
if(Level == 1)
{
HouseInfo[houseid][hEnterX] = 2237.590087;
HouseInfo[houseid][hEnterY] = -1078.869995;
HouseInfo[houseid][hEnterZ] = 1049.023437;
HouseInfo[houseid][hInterior] = 2;
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}House Interior setted. {FF0000}#1.");
}
else if(Level == 2)
{
HouseInfo[houseid][hEnterX] = 2216.540039;
HouseInfo[houseid][hEnterY] = -1076.290039;
HouseInfo[houseid][hEnterZ] = 1050.484375;
HouseInfo[houseid][hInterior] = 1;
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}House Interior setted. {FF0000}#2.");
}
else if(Level == 3)
{
HouseInfo[houseid][hEnterX] = 2282.909912;
HouseInfo[houseid][hEnterY] = -1137.971191;
HouseInfo[houseid][hEnterZ] = 1050.898437;
HouseInfo[houseid][hInterior] = 11;
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}House Interior setted. {FF0000}#3.");
}
else if(Level == 4)
{
HouseInfo[houseid][hEnterX] = 2365.300048;
HouseInfo[houseid][hEnterY] = -1132.920043;
HouseInfo[houseid][hEnterZ] = 1050.875000;
HouseInfo[houseid][hInterior] = 8;
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}House Interior setted. {FF0000}#4.");
}
else if(Level == 5)
{
HouseInfo[houseid][hEnterX] = 1299.079956;
HouseInfo[houseid][hEnterY] = -795.226989;
HouseInfo[houseid][hEnterZ] = 1084.007812;
HouseInfo[houseid][hInterior] = 5;
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}House Interior setted. {FF0000}#5.");
}
format(string, sizeof(string), "{FF0000}[HOUSE]: {FFFFFF}House ID: {FF0000}%d {FFFFFF}created.", houseid);
SendClientMessage(playerid, -1, string);
format(labelstring, sizeof(labelstring), "{15FF00}House ID: {FFFFFF}%d\n{15FF00}Status: {FFFFFF}For Sale\n{15FF00}Price: {FFFFFF}%d", houseid, Price);
HouseInfo[houseid][hOwned] = 0;
HouseInfo[houseid][hX] = X;
HouseInfo[houseid][hZ] = Z;
HouseInfo[houseid][hY] = Y;
HouseInfo[houseid][hPick] = CreatePickup(1273, 1, X, Y, Z, 0);
HouseInfo[houseid][hLabel] = Create3DTextLabel(labelstring, 0xFFFFFFFF, X, Y, Z, 30.0, 0, 0);
format(file, sizeof(file), "Houses/%d.ini", houseid);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file, "Price", Price);
dini_IntSet(file, "Interior", HouseInfo[houseid][hInterior]);
dini_IntSet(file, "Level", Level);
dini_IntSet(file, "Owned", 0);
dini_FloatSet(file, "Position X", X);
dini_FloatSet(file, "Position Y", Y);
dini_FloatSet(file, "Position Z", Z);
dini_FloatSet(file, "Enter X", HouseInfo[houseid][hEnterX]);
dini_FloatSet(file, "Enter Y", HouseInfo[houseid][hEnterY]);
dini_FloatSet(file, "Enter Z", HouseInfo[houseid][hEnterZ]);
}
houseid++;
return 1;
}
//------------------------------------------------------------------------------
CMD:buyhouse(playerid, params[])
{
new name[MAX_PLAYER_NAME], labelstring[144], string[144], file[50];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i < MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]))
{
if(HouseInfo[hOwned] == 1) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}This house have an Owner.");
if(GetPlayerMoney(playerid) < HouseInfo[hPrice]) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You don't have enough money.");
DestroyPickup(HouseInfo[hPick]);
format(labelstring, sizeof(labelstring), "{15FF00}House ID: {FFFFFF}%d\n{15FF00}Owner: {FFFFFF}%s\n{15FF00}Price: {FFFFFF}%d", i, name, HouseInfo[hPrice]);
HouseInfo[hPick] = CreatePickup(1272, 1, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]);
Update3DTextLabelText(HouseInfo[hLabel], 0xFFFFFFFF, labelstring);
format(labelstring, sizeof(labelstring), "{FF0000}[HOUSE]: {FFFFFF}You bought house ID: {FF0000}%d {FFFFFF}for {FF0000}$ %d.", i, HouseInfo[hPrice]);
SendClientMessage(playerid, -1, string);
HouseInfo[hOwned] = 1;
HouseInfo[hOwner] = name;
format(file, sizeof(file), "Houses/%d.ini", i);
if(fexist(file))
{
dini_IntSet(file, "Owned", 1);
dini_Set(file, "Owner", name);
}
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:sellhouse(playerid, params[])
{
new pname[MAX_PLAYER_NAME], labelstring[144], string[144], file[50];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; i < MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]))
{
if(HouseInfo[hOwned] == 0) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You cannot sell this house.");
if(strcmp(pname, HouseInfo[hOwner], true)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You aren't Owner of this house.");
format(labelstring, sizeof(labelstring), "{15FF00}House ID: {FFFFFF}%d\n{15FF00}Status: {FFFFFF}For Sale\n{15FF00}Price: {FFFFFF}%d", i, HouseInfo[hPrice]);
DestroyPickup(HouseInfo[hPick]);
HouseInfo[hPick] = CreatePickup(1273, 1, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ], 0);
Update3DTextLabelText(HouseInfo[hLabel], 0xFFFFFFFF, labelstring);
format(string, sizeof(string), "{FF0000}[HOUSE]: {FFFFFF}You've sold your house: {FF0000}%d.", i);
SendClientMessage(playerid, -1, string);
HouseInfo[hOwned] = 0;
HouseInfo[hOwner] = 0;
format(file, sizeof(file), "Houses/%d.ini", i);
if(fexist(file))
{
dini_IntSet(file, "Owned", 0);
dini_Set(file, "Owner", " ");
}
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:enterhouse(playerid, params[])
{
for(new i = 0; i < MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]))
{
if(HouseInfo[hLocked] == 1) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}This house it's locked.");
if(HouseInfo[hOwned] == 0) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You cannot enter in this house.");
SetPlayerPos(playerid, HouseInfo[hEnterX], HouseInfo[hEnterY], HouseInfo[hEnterZ]);
SetPlayerInterior(playerid, HouseInfo[hInterior]);
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}You've entered in a house.");
InHouse[playerid] = 1;
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:exithouse(playerid, params[])
{
for(new i = 0; i < MAX_HOUSES; i++)
{
if(InHouse[playerid] == 1)
{
SetPlayerPos(playerid, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}You've exited from a house.");
InHouse[playerid] = 0;
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:lockhouse(playerid, params[])
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; i < MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]))
{
if(HouseInfo[hOwned] == 0) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You can't lock this house.");
if(HouseInfo[hLocked] == 1) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}This house it's already locked.");
if(strcmp(pname, HouseInfo[hOwner], true)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You aren't Owner of this house.");
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}You've locked your house.");
GameTextForPlayer(playerid, "House ~r~Locked", 5000, 3);
HouseInfo[hLocked] = 1;
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:unlockhouse(playerid, params[])
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; i < MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]))
{
if(HouseInfo[hOwned] == 0) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You can't enter in this house.");
if(HouseInfo[hLocked] == 0) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}This house it's already unlocked.");
if(strcmp(pname, HouseInfo[hOwner], true)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}You aren't Owner of this house.");
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}You've unlocked your house.");
GameTextForPlayer(playerid, "House ~g~UnLocked", 5000, 3);
HouseInfo[hLocked] = 0;
}
}
return 1;
}
//------------------------------------------------------------------------------
CMD:edithouse(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_EDITID, DIALOG_STYLE_INPUT, "House ID", "{FFFFFF}Please, input below house ID wich you want to edit:", "Continue", "Exit");
return 1;
}
//------------------------------------------------------------------------------
CMD:housecmds(playerid, params[])
{
new Dialog[512];
strcat(Dialog, "{FF0000}h-House Commands.\n\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/HouseCMDS {FFFFFF}- See this list with all commands.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/BuyHouse {FFFFFF}- Buy a house.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/SellHouse {FFFFFF}- Sell your house.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/EnterHouse {FFFFFF}- Enter in a house.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/ExitHouse {FFFFFF}- Exit from a house.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/LockHouse {FFFFFF}- Locks your house.\n", sizeof(Dialog));
strcat(Dialog, "{FFCC33}/UnlockHouse {FFFFFF}- Unlocks your house.\n\n", sizeof(Dialog));
strcat(Dialog, "{FF0000}/CreateHouse {15FF00}- Creates a house [LOGGED AS RCON].", sizeof(Dialog));
return 1;
}
//------------------------------------------------------------------------------
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_EDITID)
{
if(response)
{
new string[144], file[50];
hid = strval(inputtext);
format(file, sizeof(file), "Houses/%d.ini", hid);
if(!fexist(file)) return SendClientMessage(playerid, -1, "{FF0000}ERROR: {FFFFFF}This house doesn't exist in data-base.");
format(string, sizeof(string), "{FF0000}[EDIT-MODE]: {FFFFFF}Currently editing house: {FF0000}%d.", strval(inputtext));
SendClientMessage(playerid, -1, string);
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
else
{
SendClientMessage(playerid, -1, "{FF0000}[HOUSE]: {FFFFFF}You don't edit house now.");
}
}
if(dialogid == DIALOG_EDIT)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOG_EDITPRICE, DIALOG_STYLE_INPUT, "Edit Price", "{FFFFFF}Please, input below new house's price:", "Continue", "Back");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOG_EDITINTERIOR, DIALOG_STYLE_INPUT, "Edit Interior", "{FFFFFF}Please, input below house's interior:", "Continue", "Back");
}
if(listitem == 2)
{
new file[50], string[144];
HouseInfo[hid][hOwned] = 0;
format(file, sizeof(file), "Houses/%d.ini", hid);
if(fexist(file))
{
dini_IntSet(file, "Owned", 0);
}
format(string, sizeof(string), "{FF0000}[EDIT-MODE]: {FFFFFF}House setted ownable.");
SendClientMessage(playerid, -1, string);
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
if(listitem == 3)
{
HouseInfo[hid][hLocked] = 1;
SendClientMessage(playerid, -1, "{FF0000}[EDIT-MODE]: {FFFFFF}House locked.");
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
if(listitem == 4)
{
HouseInfo[hid][hLocked] = 0;
SendClientMessage(playerid, -1, "{FF0000}[EDIT-MODE]: {FFFFFF}House unlocked.");
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
if(listitem == 5)
{
SetPlayerPos(playerid, HouseInfo[hid][hX], HouseInfo[hid][hY], HouseInfo[hid][hZ]);
SendClientMessage(playerid, -1, "{FF0000}[EDIT-MODE]: {FFFFFF}Teleported to house.");
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
if(listitem == 6)
{
SetPlayerPos(playerid, HouseInfo[hid][hX], HouseInfo[hid][hY], HouseInfo[hid][hZ]);
SetPlayerInterior(playerid, HouseInfo[hid][hInterior]);
SendClientMessage(playerid, -1, "{FF0000}[EDIT-MODE]: {FFFFFF}Entered in house.");
}
if(listitem == 7)
{
SetPlayerPos(playerid, HouseInfo[hid][hX], HouseInfo[hid][hY], HouseInfo[hid][hZ]);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, -1, "{FF0000}[EDIT-MODE]: {FFFFFF}House exited to pick-up position.");
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
}
else
{
ShowPlayerDialog(playerid, DIALOG_EDITID, DIALOG_STYLE_INPUT, "House ID", "{FFFFFF}Please, input below house ID wich you want to edit:", "Continue", "Exit");
}
}
if(dialogid == DIALOG_EDITPRICE)
{
if(response)
{
new file[50], string[144];
HouseInfo[hid][hPrice] = strval(inputtext);
format(file, sizeof(file), "Houses/%d.ini", hid);
if(fexist(file))
{
dini_IntSet(file, "Price", HouseInfo[hid][hPrice]);
}
format(string, sizeof(string), "{FF0000}[EDIT-MODE]: {FFFFFF}New price of house: {FF0000}%d {FFFFFF}it's {FF0000}%d.", hid, HouseInfo[hid][hPrice]);
SendClientMessage(playerid, -1, string);
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
else
{
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
}
if(dialogid == DIALOG_EDITINTERIOR)
{
if(response)
{
new file[50], string[144];
HouseInfo[hid][hInterior] = strval(inputtext);
format(file, sizeof(file), "Houses/%d.ini", hid);
if(fexist(file))
{
dini_IntSet(file, "Interior", HouseInfo[hid][hInterior]);
}
format(string, sizeof(string), "{FF0000}[EDIT-MODE]: {FFFFFF}New interior of house: {FF0000}%d {FFFFFF}it's {FF0000}%d.", hid, HouseInfo[hid][hInterior]);
SendClientMessage(playerid, -1, string);
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
else
{
ShowPlayerDialog(playerid, DIALOG_EDIT, DIALOG_STYLE_LIST, "Edit House:", "Edit Price\nEdit Interior\nSet Owned\nLock House\nUnlock House\nTeleport House\nEnter House\nExit House", "Select", "Back");
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
LoadHouses();
return 1;
}
//------------------------------------------------------------------------------
stock LoadHouses()
{
new file[50], labelstring[144], stringlabel[144];
for(new i = 0; i < MAX_HOUSES; i++)
{
format(file, sizeof(file), "Houses/%d.ini", i);
if(fexist(file))
{
HouseInfo[hOwned] = dini_Int(file, "Owned");
HouseInfo[hPrice] = dini_Int(file, "Price");
HouseInfo[hInterior] = dini_Int(file, "Interior");
HouseInfo[hX] = dini_Float(file, "Position X");
HouseInfo[hY] = dini_Float(file, "Position Y");
HouseInfo[hZ] = dini_Float(file, "Position Z");
HouseInfo[hEnterX] = dini_Float(file, "Enter X");
HouseInfo[hEnterY] = dini_Float(file, "Enter Y");
HouseInfo[hEnterZ] = dini_Float(file, "Enter Z");
strmid(HouseInfo[hOwner], dini_Get(file, "Owner"), false, strlen(dini_Get(file, "Owner")), MAX_PLAYER_NAME);
format(labelstring, sizeof(labelstring), "{15FF00}House ID: {FFFFFF}%d\n{15FF00}Status: {FFFFFF}For Sale\n{15FF00}Price: {FFFFFF}%d", i, HouseInfo[hPrice]);
format(stringlabel, sizeof(stringlabel), "{15FF00}House ID: {FFFFFF}%d\n{15FF00}Owner: {FFFFFF}%s\n{15FF00}Price: {FFFFFF}%d", i, HouseInfo[hOwner], HouseInfo[hPrice]);
if(HouseInfo[hOwned] == 0)
{
HouseInfo[hPick] = CreatePickup(1273, 1, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]);
HouseInfo[hLabel] = Create3DTextLabel(labelstring, 0xFFFFFFFF, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ], 30.0, 0, 0);
}
else if(HouseInfo[hOwned] == 1)
{
HouseInfo[hPick] = CreatePickup(1272, 1, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ]);
HouseInfo[hLabel] = Create3DTextLabel(stringlabel, 0xFFFFFFFF, HouseInfo[hX], HouseInfo[hY], HouseInfo[hZ], 30.0, 0, 0);
}
houseid++;
}
}
print(" ");
print(" ");
printf(" LOADED HOUSE: %d/%d", houseid, MAX_HOUSES);
print(" ");
print(" ");
return 1;
}
//------------------------------------------------------------------------------
Spoiler
Link to comment
Share on other sites
4 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now