
kevin11
Members-
Posts
328 -
Joined
-
Last visited
Everything posted by kevin11
-
ye thats what he said
-
this is what i have (not made by me) but how can i add a jetpack like on markerhit then ur jetpack = disabled function markerHit (hitPlayer, matchingDimension) if (source == hayMarker) then if (getElementType (hitPlayer) == "player") then toggleControl (hitPlayer, "fire", false) toggleControl (hitPlayer, "next_weapon", false) toggleControl (hitPlayer, "previous_weapon", false) toggleControl (hitPlayer, "aim_weapon", false) toggleControl (hitPlayer, "vehicle_fire", false) toggleControl (hitPlayer, "vehicle_secondarry_fire", false) toggleControl (hitPlayer, "vehicle_fire", false) showPlayerHudComponent (hitPlayer, "ammo", false) showPlayerHudComponent (hitPlayer, "weapon", false) elseif (getElementType (hitPlayer) == "vehicle") then destroyElement (hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit)
-
nice idk what it is but looks nice
-
uhm its showroom? i want opinions and if its good i do a download link
-
hey all my question today = how can i save my accounts in sql?
-
play mta windowed
-
is this better???? can anyone just fix it so i can see what i did wrong:S function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local nametagColor = getPlayerNametagColor ( source ) setPlayerNametagColor ( thePlayer, "r" ) setPlayerNametagColor ( thePlayer, "g" ) setPlayerNametagColor ( thePlayer, "b" ) end end function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local nametagColor = getAccountData ( playeraccount, "nameColor" ) if ( nametagColor ) then setPlayerNametagColor ( thePlayer, "r" ) setPlayerNametagColor ( thePlayer, "g" ) setPlayerNametagColor ( thePlayer, "b" ) end end end function onPlayerSpawn ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local nametagColor = getAccountData ( playeraccount, "nameColor" ) if ( nametagColor ) then setPlayerNametagColor ( thePlayer, "r" ) setPlayerNametagColor ( thePlayer, "g" ) setPlayerNametagColor ( thePlayer, "b" ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) addEventHandler ( "onPlayerSpawn", getRootElement ( ), onPlayerSpawn )
-
can anyone fix my original code, so it will work?
-
50p can u fix it for me ur pro function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local r, g, b = getPlayerNametagColor ( source ) local nametagColor = { r, g, b } local dataToSave = toJSON( nametagColor ) setAccountData ( playeraccount, "nameColor", dataToSave ) end end function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local nametagColor = getAccountData ( playeraccount, "nameColor" ) if ( nametagColor ) then local colorTable = fromJSON( nametagColor ) local r, g, b = unpack( fromJSON ) setPlayerNametagColor ( thePlayer, r, g, b ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin )
-
ok ty (im trying to learn lua )
-
Yes, you. Do you think colour is just 1 value? It is for drawing functions (client-side) but not for name. Why don't you try to think for a second or two? Look at setPlayerNametagColor function parameters at wiki and ask yourself: "What should I save that I can load/use later in setPlayerNametagColor?" I'm sure you can answer this question within time of 1 second after seeing setPlayerNametagColor parameters. k u can also try saying it at a normal way im just asking
-
1: close youre eyes 2: do a wish 3: go search 1-2 topics back called replace textures or something like that from pinda
-
-
there is gonna be more (garage, maybe a fun stunt park, all inside the cave)
-
its a cave house made by me and my friend (we saw one on samp so we made it for mta) i want all opinions cuz then i post it if people think its nice http://img256.imageshack.us/i/mtascreen ... 00532.png/ http://img193.imageshack.us/i/mtascreen ... 00524.png/ http://img3.imageshack.us/i/mtascreen20 ... 00451.png/ http://img522.imageshack.us/i/mtascreen ... 00316.png/ sorry for links but i got an error while upload with
-
hey i got EFC infront of my name, how can i delete it?
-
no lol i just tested in my server:S i saw it go up down left i dont know how thats possible with those coordinates
-
sorry cant help u its weird cuz only the going up and down coordinates are edited