Чтобы открыть окно с прогрессбарами нужно использовать кнопку Y
Вид для печати
Благодарю, только вот зачем так сделал?
как же теперь другой код использовать?Код:if(GetPVarInt(playerid, "Miner") == 1 && PRESSED(KEY_WALK) && GetPVarInt(playerid, "Mining") == 0)
и такКод:if(GetPVarInt(playerid, "Miner") == 1 && PRESSED(KEY_WALK) && GetPVarInt(playerid, "Mining") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,555.9859,912.4984,851.08721) ||
IsPlayerInRangeOfPoint(playerid, 3.0,558.9138,900.0824,851.2289)
|| IsPlayerInRangeOfPoint(playerid, 3.0,598.3822,811.5417,851.8732))
{
TextDrawShowForPlayer(playerid,MineralCount);
SetProgressBarValue(MineralBar[playerid], MiningProgress[playerid]);
ShowProgressBarForPlayer(playerid, MineralBar[playerid]);
new r = random(sizeof(MineralTextDraw));
TextDrawShowForPlayer(playerid,MineralTextDraw[r]);
SelectTextDraw(playerid, 0xFF4040AA);
SetPVarInt(playerid,"Mining", 1);
}
for(new i = 1; i <= TOTALHOTEL; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z])) {
if(PlayerInfo[playerid][pHotelKey] != i || HotelInfo[i][htLock] != 0) continue;
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htExit_X],HotelInfo[i][htExit_Y],HotelInfo[i][htExit_Z]);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htExit_X], HotelInfo[i][htExit_Y], HotelInfo[i][htExit_Z])) {
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z]);
}
}
}
не работает!Код:if(PRESSED(KEY_WALK))
{
if(GetPVarInt(playerid, "Miner") == 1 && PRESSED(KEY_WALK) && GetPVarInt(playerid, "Mining") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,555.9859,912.4984,851.08721) ||
IsPlayerInRangeOfPoint(playerid, 3.0,558.9138,900.0824,851.2289)
|| IsPlayerInRangeOfPoint(playerid, 3.0,598.3822,811.5417,851.8732))
{
TextDrawShowForPlayer(playerid,MineralCount);
SetProgressBarValue(MineralBar[playerid], MiningProgress[playerid]);
ShowProgressBarForPlayer(playerid, MineralBar[playerid]);
new r = random(sizeof(MineralTextDraw));
TextDrawShowForPlayer(playerid,MineralTextDraw[r]);
SelectTextDraw(playerid, 0xFF4040AA);
SetPVarInt(playerid,"Mining", 1);
}
}
for(new i = 1; i <= TOTALHOTEL; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z])) {
if(PlayerInfo[playerid][pHotelKey] != i || HotelInfo[i][htLock] != 0) continue;
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htExit_X],HotelInfo[i][htExit_Y],HotelInfo[i][htExit_Z]);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htExit_X], HotelInfo[i][htExit_Y], HotelInfo[i][htExit_Z])) {
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z]);
}
}
}
мля... :scratch_one-s_head:
Пробовал так:
и так:Код:if(GetPVarInt(playerid, "Miner") == 1 && PRESSED(KEY_WALK) && GetPVarInt(playerid, "Mining") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,555.9859,912.4984,851.08721) ||
IsPlayerInRangeOfPoint(playerid, 3.0,558.9138,900.0824,851.2289)
|| IsPlayerInRangeOfPoint(playerid, 3.0,598.3822,811.5417,851.8732))
{
TextDrawShowForPlayer(playerid,MineralCount);
SetProgressBarValue(MineralBar[playerid], MiningProgress[playerid]);
ShowProgressBarForPlayer(playerid, MineralBar[playerid]);
new r = random(sizeof(MineralTextDraw));
TextDrawShowForPlayer(playerid,MineralTextDraw[r]);
SelectTextDraw(playerid, 0xFF4040AA);
SetPVarInt(playerid,"Mining", 1);
}
for(new i = 1; i <= TOTALHOTEL; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z])) {
if(PlayerInfo[playerid][pHotelKey] != i || HotelInfo[i][htLock] != 0) continue;
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htExit_X],HotelInfo[i][htExit_Y],HotelInfo[i][htExit_Z]);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htExit_X], HotelInfo[i][htExit_Y], HotelInfo[i][htExit_Z])) {
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z]);
}
}
}
Код выхода и входа в данном случаи не работаютКод:if(PRESSED(KEY_WALK))
{
if(GetPVarInt(playerid, "Miner") == 1 && GetPVarInt(playerid, "Mining") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,555.9859,912.4984,851.08721) ||
IsPlayerInRangeOfPoint(playerid, 3.0,558.9138,900.0824,851.2289)
|| IsPlayerInRangeOfPoint(playerid, 3.0,598.3822,811.5417,851.8732))
{
TextDrawShowForPlayer(playerid,MineralCount);
SetProgressBarValue(MineralBar[playerid], MiningProgress[playerid]);
ShowProgressBarForPlayer(playerid, MineralBar[playerid]);
new r = random(sizeof(MineralTextDraw));
TextDrawShowForPlayer(playerid,MineralTextDraw[r]);
SelectTextDraw(playerid, 0xFF4040AA);
SetPVarInt(playerid,"Mining", 1);
}
}
for(new i = 1; i <= TOTALHOTEL; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z])) {
if(PlayerInfo[playerid][pHotelKey] != i || HotelInfo[i][htLock] != 0) continue;
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htExit_X],HotelInfo[i][htExit_Y],HotelInfo[i][htExit_Z]);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htExit_X], HotelInfo[i][htExit_Y], HotelInfo[i][htExit_Z])) {
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z]);
}
}
}
Не проще ли так?
Код:if(PRESSED(KEY_WALK))
{
for(new i = 1; i <= TOTALHOTEL; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z])) {
if(PlayerInfo[playerid][pHotelKey] != i || HotelInfo[i][htLock] != 0) continue;
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htExit_X],HotelInfo[i][htExit_Y],HotelInfo[i][htExit_Z]);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, HotelInfo[i][htExit_X], HotelInfo[i][htExit_Y], HotelInfo[i][htExit_Z])) {
SetPlayerInterior(playerid,HotelInfo[i][htInt]);
SetPlayerVirtualWorld(playerid, HotelInfo[i][htWorld]);
SetPlayerPos(playerid,HotelInfo[i][htEnter_X], HotelInfo[i][htEnter_Y], HotelInfo[i][htEnter_Z]);
return 1;
}
}
if(GetPVarInt(playerid, "Miner") == 1 && GetPVarInt(playerid, "Mining") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,555.9859,912.4984,851.08721) || IsPlayerInRangeOfPoint(playerid, 3.0,558.9138,900.0824,851.2289) || IsPlayerInRangeOfPoint(playerid, 3.0,598.3822,811.5417,851.8732))
{
TextDrawShowForPlayer(playerid,MineralCount);
SetProgressBarValue(MineralBar[playerid], MiningProgress[playerid]);
ShowProgressBarForPlayer(playerid, MineralBar[playerid]);
new r = random(sizeof(MineralTextDraw));
TextDrawShowForPlayer(playerid,MineralTextDraw[r]);
SelectTextDraw(playerid, 0xFF4040AA);
SetPVarInt(playerid,"Mining", 1);
}
}
}
где БД взять?
Кто может дать Систему минералов?
Мод отличный,не поспоришь.Код HTML:* Мод выложил специально для пользователей pro-pawn.ru, и как его автор запрещаю его распространение на посторонних порталов (в частности говно-инфо).
Но ты написал бред,вот покажи юредически подтверждающую бумажку что ты являешься автором этого мода и что его просто так нельзя украсть,покажи авторские права хотя бы на название самого мода.
Скажу что ты написал бред в конце -_-
А мод хороший, + тебе!
Ну, может и бред, тем более и грамматическую ошибку допустил, как никак, это мой труд, и как его автор я элементарно имею право попросить (хотя и в грубой формы, иначе современное общество не поймёт) соблюсти мои интересы. Лицензия тоже есть: КЛАЦ
где магазин Часов?
Ребятки не могу залить на хостинг данный мод, помогите пожалуйста.
Описание хорошее.
Молодец, + твой!
Ребят, подскажите пожалуйста почему когда я устанавил его на хостинг то пишет Unknown. В строку plugins всё вписал и .so тоже сделал. Помогите пожалуйста, с меня +
Вот лог:
PHP код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team
[09:27:00] filterscripts = "" (string)
[09:27:00]
[09:27:00] Server Plugins
[09:27:00] --------------
[09:27:00] Loading plugin: streamer
[09:27:00] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[09:27:00] Loading plugin: sscanf.so
[09:27:00] Failed (plugins/sscanf.so: cannot open shared object file: No such file or directory)
[09:27:00] Loading plugin: mysql.so
[09:27:00] Failed (plugins/mysql.so: cannot open shared object file: No such file or directory)
[09:27:00] Loading plugin: regex.so
[09:27:00] Failed (plugins/regex.so: cannot open shared object file: No such file or directory)
[09:27:00] Loading plugin: crashdetect.so
[09:27:00] Failed (plugins/crashdetect.so: cannot open shared object file: No such file or directory)
[09:27:00] Loaded 0 plugins.
[09:27:00]
[09:27:00] Filterscripts
[09:27:00] ---------------
[09:27:00] Loaded 0 filterscripts.
[09:27:00] Script[gamemodes/new.amx]: Run time error 19: "File or function is not found"
[09:27:00] Number of vehicle models: 0
Ну где-то, я это видел..Engine-rp, теперь в паблике)
В принципе,для основы - хорошо,только - исправить баги / недоработки, оптимизировать и доработать.
Мод будет классный.
'Спасибо' твоя.
Автор, перезалей пожалуйста мод.
Был бы рад если перезалил бы на другой файлобменник .
Перезалейте..