MatXpl
Members-
Posts
180 -
Joined
-
Last visited
Everything posted by MatXpl
-
Hi! I make this code: function nobum() local vehicle = getElementsByType ( "vehicle" ) if ( isVehicleFuelTankExplodable ( vehicle ) ) then setVehicleDamageProof ( vehicle, true ) end end addEventHandler("onVehicleDamage", getRootElement(), nobum) function damage() local vehicle = getElementsByType ( "vehicle" ) if isVehicleDamageProof ( vehicle ) then timerv = setTimer (function() setVehicleEngineState ( vehicle, false ) end, 2100, 1) resetTimer ( timerv ) end end addEventHandler("onVehicleDamage", getRootElement(), damage) and i wont to car no explode but this script dosn't work debugscript: Bad argument @ 'isVehicleFuelTankExplodable Bad argument @ 'isVehicleDamageProof pls Help what is wrong ?
-
function load ( player ) local nick = getPlayerNametagText(player) local xmll = xmlLoadFile("data/ovners.xml") instructionsnode = xmlFindChild ( xmll, ""..nick.."", 0 ) end addCommandHandler ( "command", player, load ) And i wont to select index of xmlFindChild ( xmll, ""..nick.."", Index number ) and if i chat /command 1 then index number = 1 how can i do this ?
-
Hi! I need help... I wont to find xml child by index number in command, example: instructionsnode = xmlFindChild ( xmll, ""..nick.."", 0 ) and When i put in console command 2 or in chatbox /command 2 then 2 = index ( xmll, ""..nick.."", 0 ) How can i do this ?
-
Hi! When i create a gui window with this entry: 0.3408,0.2435,0.3555,0.4935, this gui is for all resolutions ? thanks
-
Hi. I wont to get vehicle health local vehh = getElementHealth ( vehicle ) setElementData ( vehicle, "Health", vehh ) and for example it outputs in my dxtext: Veh health: 456.24860721... And i wont change this 456.24860721... to 456 how can i do it ?
-
ok, now it works thanks 4 all
-
Hi ! I would like to get info from gui edit, and this text ( from gui edit ) output to other gui, how can i make it ?
-
He wonts this code only for he server...
-
You can use https://wiki.multitheftauto.com/wiki/SetElementDimension
-
lol i uploaded "setPlayerTeam( thePlayer, fl )" and after writing my post code has changed ... maybe its a bug in the forum? Here i add code not in code tags: a = createTeam ( "teamA", 0, 10, 200 ) b = createTeam ( "teamB", 0, 200, 10 ) aCount = countPlayersInTeam ( a ) bCount = countPlayersInTeam ( b ) function team (thePlayer) if aCount == 0 then setPlayerTeam (thePlayer, a) outputChatBox ("A", thePlayer, 255, 0, 0, true) setElementPosition (thePlayer, 1021, 1120, 142) setPlayerSkin (thePlayer, 184) elseif bCount == 1 then setPlayerTeam (thePlayer , b) setElementPosition (thePlayer, 100, 100, 100) setPlayerSkin (thePlayer, 162) end end addEventHandler( "onPlayerLogin", getRootElement(), team )
-
Unless you set it relative to the screen.
-
https://forum.multitheftauto.com/viewforum.php?f=124
-
i cheanage all thePlayer to source and this dosen't work..
-
Script: fl = createTeam ( "FL", 0, 10, 200 ) nn = createTeam ( "NN", 0, 200, 10 ) pCount = countPlayersInTeam ( fl ) mCount = countPlayersInTeam ( nn ) function team (thePlayer) if pCount == 0 then setPlayerTeam" class="kw6">setPlayerTeam (thePlayer, fl) outputChatBox ("Spawned", thePlayer, 255, 10, 0, true) setElementPosition (thePlayer, 1232, 1011, 254) setPlayerSkin (thePlayer, 168) elseif pCount == 1 then setPlayerTeam" class="kw6">setPlayerTeam (thePlayer , nn) setElementPosition (thePlayer, 1510, 120, 113) setPlayerSkin (thePlayer, 166) end end addEventHandler( "onPlayerLogin", getRootElement(), team )
-
I created this but i have problem if nnnCount == 0 then setPlayerTeam" class="kw6">setPlayerTeam (thePlayer, pnn) outputChatBox ("You are in NeRN", thePlayer, 255, 0, 0, true) setElementPosition (thePlayer, 2021, 1065, 104) setPlayerSkin (thePlayer, 148) elseif pCount == 1 then ... and in debug script shows: Bad 'player' pointer @ 'setPlayerTeam'(1) Bad 'element' pointer @ 'outputChatBox'(1) ... But i have defined player function teams (thePlayer) Help !
-
Hi! I have question: How can i set max players in team ? Of course, if this is possible
-
Hi community. Can i replace a player clothes ( CJ skin, txd ) ?
-
Hi! I'm creating a fuel script, and what functions should I use to do this ?
-
i wont create somthing like invertory in mta:paradise. Images create in gui when i wrote /add 4 - this create in gui image - ID 4, but if i wont wrote /add 5 - image id 5 this create is this same place.
-
Hi community! I need help How can I make a gui in which I will add pictures without stating their position? (I mean to make them in bulk)
