Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: komendą
1. Dodawanie Informacji komendą
Witam znacie przewodnik pod f1? Pewnie ze tak.
I mam problem,
Chce aby komend? np:
/akulizacja (Np:mixLoLmix \ Nowy Panel Logowanie 1.0)

i w f1 w zak?adce Aktulizacje Doda?a sie linika z tym co tam wpisa?em,
Jak co? daje tu kod f1 :) Daje Piwa i respekt!

[Lua]

local files = {"pomoc/zasady.xml;Zasady gry","pomoc/kary.xml;Administracja","pomoc/podstawy.xml;Podstawy ", "pomoc/tips.xml;Porady","pomoc/animacje.xml;Aktualizacje"}
local resX,resY = guiGetScreenSize()

function startup()
window = guiCreateWindow(resX*1/10,resY*2/10,resX/10*8,resY/10*6,"Your New Real Life Przewodnik po serwerze",false)
guiSetVisible(window,false)
guiWindowSetMovable(window,false)
guiWindowSetSizable(window,false)
tPanel = guiCreateTabPanel(0,0.1,1,1,true,window)
local t1=guiCreateTab("Your Real New Life", tPanel)
-- guiCreateStaticImage ( 0.02, 0.04, 0.94, 0.4, "img/lss.png", true, t1 )

-- pozostawienie ponizszej linii jest wymagane w ramach udzielonej licencji
guiCreateLabel( 0.02, 0.70, 0.94, 0.20, "RCON-I: ,Rebook,mixLoLmix", true, t1)
guiCreateStaticImage ( 0.02, 0.04, 0.94, 0.4, "img/lss.png", true, t1 )


for k, v in ipairs(files) do
local data = split(v,string.byte(";"))
local node = xmlLoadFile(data[1])
local text = xmlNodeGetValue(node)
local tab = guiCreateTab(data[2],tPanel)
local memo = guiCreateMemo(0.02,0.04,0.94,0.94,t...
2. [INNE] Szlaban otwierany komendą
Witam,

Chc? zrobi? szlaban na open,close zrobi?em tak

Kod:

CMD:open(playerid, cmdtext[])
{
{
GameTextForPlayer(playerid, "~n~Otwieranie", 2500, 5);
MoveObject(szlaban,1015.3994141, -1310.0000000, 13.1000004, 3);
}
return 1;
}

CMD:close(playerid, cmdtext[])
{
{
GameTextForPlayer(playerid, "~n~Zamykanie", 2500, 5);
MoveObject(szlaban,1144.5000000, -1291.0999756, 13.3000002, 3);
}
return 1;
}


I gdy wpisuj? pisze tylko otwieranie lub zamykanie ?adnego efektu ...
Za pomoc zimne ----> :piwo:
3. [GF] [Prośba]Zmiana skryptu na skrypt z komendą zcmd.
[center][b]Mam pro?b?, chcia?bym aby lina uaktywnia?a si? po u?yciu komendy /lina , i aby by?a to komenda w zcmd. Prosz?, je?li z?y dzia? prosz? o przeniesienie ![/b]
Tu kod liny:
[code]#include <a_samp> //0.3 r7 required
#include <mapandreas> //you have to set it up on your own (see http://gtao.pl.com/index.php?topic=145196.0 )

#define players 500 //maximum of players in your server
#define chopperid 497 //ID of the vehicle model ( http://wiki.sa-mp.com/wiki/Vehicles:Helicopters )
#define ropelength 50 //length of slideable rope (ingame meters)
#define skinid 285 //the skin, who may slide down the rope ( http://wiki.sa-mp.com/wiki/Skins:All )

#define offsetz 12
#define dur 250
#pragma tabsize 0

new r0pes[players][ropelength],Float:pl_pos[players][5]; //cause pvar + array = sux

public OnFilterScriptInit()
{
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
print("n--------------------------------------");
print(" <Advanced Rope (v1)> ");
print(" (c) Trooper([Y]) , 2010 (Nicksoft) ");
print("--------------------------------------n");

return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
if(GetPVarInt(playerid,"roped") == 1)
{
for(new destr=0;destr<=ropelength;destr++)
...