
golanu21
Members-
Posts
650 -
Joined
-
Last visited
Everything posted by golanu21
-
local x, y, z = getElementPosition (source)
-
don't work , i type, /addevent 30 100 and give me outputChatBox ("[invalid Syntax]: /addevent [gunid] [ammo]
-
i type /addevent and his need to give me outputChatBox ("[invalid Syntax]: /addevent [gunid] [ammo]", source, 255, 0, 0 ) but nothing
-
[14:59:23] SCRIPT ERROR:12: 'end' expected (to close 'if' at line 7) near 'else' [14:59:23] WARNING: 12: 'end' expected (to close 'if' at line 7) near 'else' idk where i need to put end
-
addEventHandler("onPlayerCommand", root, function (source, cmd, gunid, ammo) if cmd = = "addevent" then local x, y, z = getLocalPlayer (source) local accName = getAccountName( getPlayerAccount(source) ) if gunid and ammo then if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admins" ) ) then eventmarker = createMarker (x, y, z, "cylinder", 5, 0, 0, 0, 0 ) outputChatBox ("Adminul"..accName.."a pornit un event. [/joinevent]", source, 255, 0, 0 ) else outputChatBox ("[invalid Syntax]: /addevent [gunid] [ammo]", source, 255, 0, 0 ) else outputChatBox ("Tre sa fi un admin boule", source, 255, 0, 0 ) else if cmd = = "joinevent" then giveWeapon (source, gunid, ammo) outputChatBox("Ai intrat in event", source, 0, 255, 0 ) setElementPosition ( source, eventmarker ) end end end end end ) [14:49:31] SCRIPT ERROR: 3: 'then' expected near '=' [14:49:31] WARNING: 'then' expected near '=
-
Eu te-am ajutat.. foi fi aici ptr voi
-
Portforward pentru MTA server
golanu21 replied to SuleymanM's topic in Probleme legate de MTA Client/Server
acelas model am si eu este foarte simplu Service Port : UDP 22003 TCP 22005 UDP 22126 Ip adress: pui ip de la router Status: la toate pui Enabled si la commom service port : nu pui nimic -
nu iti facem noi scripturile dar poti folosi addAccount addCommandHandler si la point si money nush la ce te referi, sa apara la scoreboard ?
-
gate1 = createObject ( 980, x1, y1, z1 ) gate = createObject(980, 551.5, 1659.300488281, 8.8000001907349, 0, 0, 121.99768066406) function gateOpen() moveObject( gate, 2000, 551.59997558594, 165.1999511719, 14.30000190735 ) end addCommandHandler("deschidepoarta", gateOpen) function gateClose() moveObject( gate, 2000, 551.59997558594, 165.1999511719, 14.30000190735 ) end addCommandHandler("inchedepoarta", gateClose)
-
i make a talking ped system in game SYNTAX When player enter in ped zone SPECIAL THANX : TAPL, Sasuke*, Jaysds1 Download : https://community.multitheftauto.com/index.php?p=resources&s=details&id=6654
-
bad argument #1 to 'concat' (table expected, got string) .. it is in server side
-
how i make this, please give me full script
-
47: bad argument #1 to 'concat' (table expected, got nil)
-
how i make with table.concat?, i don't know with part of scripting
-
i tired with createMarker .. and nothing
-
So, you want a msg for the ped it self right--yes and the msg doesn't change when ever you want to create another one?--when you create another one, you can put same text or another
-
i want to make this when player or admin create a ped " /createped [modelid] [x] [y] [z] [text]" the text to appear when i hit the colshape
-
function createped (player, cmd, modelid, x1, y1, z1) local modelid = tonumber(modelid) local text = {} local say = text local x1 = tonumber(x1) local y1 = tonumber(y1) local z1 = tonumber(z1) if modelid and x1 and y1 and z1 and text then ped1 = createPed ( modelid, x1, y1, z1) setPedFrozen ( ped1, true) cool = createColRectangle ( x1, y1, z1, 5, 5 ) else outputChatBox("[invalid Syntax]: /createped [modelid] [x] [y] [z] [text]", player, 255, 0, 0 ) end end addCommandHandler("createped", createped) addEventHandler ("onColShapeHit", root, function (hitPlayer) if isElement(cool) and (source == cool) then if(getElementType(hitPlayer) == "player") then if isElement(text) then outputChatBox ( "Bot say:"..text, player, 255, 0, 0 ) end end end end ) line 3
-
in debugscript errors not exist, and when i try to create nothing