
golanu21
Members-
Posts
650 -
Joined
-
Last visited
Everything posted by golanu21
-
man after teleported the player in the Vehicle warpPedIntoVehicle ( source, Vehicle) to start the markers.. for route
-
train system, i have complete the client side, but now after having been transported in the vehicle "Vehicle", to start a tour ( bus job for example ), with createMarker, but idk how
-
i have this script in server side addEvent("folosestemasina",true) addEventHandler("folosestemasina",root, function (Veh) local vehName = getVehicleIDFromName(Veh) local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (vehName, 1724.912109375, -1957.73828125, 13.539102554321 ) warpPedIntoVehicle ( source, Vehicle) setTrainDerailable(Vehicle, false) setElementData(Vehicle, "caine", true ) outputChatBox("**The Tour Has Been Started",source,math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end ) after having been transported in the vehicle Vehicle = createVehicle (vehName, 1724.912109375, -1957.73828125, 13.539102554321 ) to start tour with createMarker
-
wtf ? : )), thanx
-
how i make this colors and syntax for notepad ++ ?
-
addEvent("folosestemasina",true) function startevent (Wep, x, y, z, localPlayer, cmd) local x, y, z = getElementPosition ( source ) marker = createMarker (x, y, z, "checkpoint", 2, 255, 255, 255, 255 ) if cmd == "joinevent" then giveWeapon ( source, weapon, 99999 ) setElementPosition ( source, marker ) weapon = getWeaponIDFromName (Wep) end end addEventHandler("folosestemasina",root, startevent ) no errors, nothing, when i type /joinevent
-
i put theElement, key, but the value >???? , what it is ? when i use it ?
-
I'm not good at getElementData and setElementData
-
i fix that with the key i don't put the "", but now i have another problem [18:16:45] WARNING: Gamemode\vehicles\server.lua:36: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] [18:16:45] WARNING: Gamemode\vehicles\server.lua:37: Bad argument @ 'giveWeapon' [Expected element at argument 1, got nil] [18:16:45] WARNING: Gamemode\vehicles\server.lua:38: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] [18:16:45] WARNING: Gamemode\vehicles\server.lua:39: Bad argument @ 'setElementPosition' [Expected element at argument 1, got nil] addEvent("folosestemasina",true) function startevent (Wep, localplayer) players = getElementsByType ( "player" ) for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then marker = createMarker (localplayer, "checkpoint", 2, 255, 255, 255, 0 ) setElementData ( marker, "startevent" ) setElementData ( Wep, "starteventt" ) end end end end addEventHandler("folosestemasina",root, startevent ) function giveweapon ( cmd ) playerss = getElementsByType ( "player" ) for r,s in ipairs(playerss) do local accountnamee = "" if (isGuestAccount(getPlayerAccount(s)) == false) then accountname = getAccountName (getPlayerAccount(s)) if isObjectInACLGroup ( "user." .. accountnamee, aclGetGroup ( "Everyone" ) ) then getElementData ( Wep, "starteventt" ) giveWeapon ( source, Wep, 99999 ) getElementData ( marker, "startevent" ) setElementPosition ( source, marker ) end end end end addCommandHandler ("joinevent", giveweapon )
-
bindKey(Key,"down", function () guiSetVisible(fereastra,not guiGetVisible(fereastra)) showCursor(guiGetVisible(fereastra)) if ( guiGetVisible(fereastra) == true ) then guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) end end ) key = F2 fereastra = gui window label = guiCreateLabel(12, 25, 309, 66, "Weapon ID", false, fereastra) but when i press F2 do nothing
-
for hide try this guiSetVisible (guiwindowname, false) -- Guest mode function onClickGuest(button,state) if(button == "left" and state == "up") then if (source == btnPlayAsGuest) then guiSetVisible(guiwindow, false) guiSetInputEnabled(false) showCursor(false) outputChatBox("#0000FF* #FFFFFFYou chose to play as Guest#FFFFFF!",255,255,255,true) if blackLoginScreen == true then fadeCamera(true,removeBlackScreenTime) end end end end
-
exports.scoreboard:scoreboardAddColumn but you can try this
-
you can't change tactisc gamemode, is complied
-
oh it's ok now thanx very muth, mega mistake
-
function replaceModel() txd = engineLoadTXD("infernus.txd") engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 5: bad dff pointer 3: bad txt pointer
-
"HazeMaze" version="0.1" type="gamemode" name="RPG" description="RPG"> "policeJob/jail.map" /> "policeJob/pvehs.map" /> "robberjob/files/cash.mp3"/> "pizzajob/pizzaveh.map"/> "loginpanel/logo.png"/> this is the full meta
-
i put this in a meta gamemode, and gamemode now don't work
-
function replaceModel() txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) what is not ok here?, the name of txd and dff is infernus, and i want to change infernus model
-
function player_Wasted ( ammo, attacker, weapon, bodypart ) if ( attacker ) then local tempString if ( getElementType ( attacker ) == "player" ) then tempString = getPlayerName ( attacker ).." la omorat pe "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" setPlayerWantedLevel ( attacker, math.random(3, 6)) elseif ( getElementType ( attacker ) == "vehicle" ) then local tempString = getPlayerName ( getVehicleController ( attacker ) ).." la omorat pe "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" setPlayerWantedLevel ( attacker, 2) end if ( bodypart == 9 ) then tempString = tempString.." (HEADSHOT!)" else tempString = tempString.." ("..getBodyPartName ( bodypart )..")" end outputChatBox ( tempString ) else outputChatBox ( getPlayerName ( source ).." died. ("..getWeaponNameFromID ( weapon )..") ("..getBodyPartName ( bodypart )..")" ) end end it is ok?
-
i want to make this : When player1 kill player2, server give to player1 wanted level > 2
-
this is the script man addEventHandler("onPlayerCommand", root, function ( cmd, gunid, ammo) if cmd == "addevent" then local x, y, z = getElementPosition (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 ("Tre sa fi un admin boule", source, 255, 0, 0 ) end else outputChatBox ("[invalid Syntax]: /addevent [gunid] [ammo]", source, 255, 0, 0 ) end else if cmd == "joinevent" then giveWeapon ( tonumber(gunid), tonumber(ammo)) outputChatBox("Ai intrat in event", source, 0, 255, 0 ) setElementPosition ( source, eventmarker ) end end end)