Jump to content

kevin11

Members
  • Posts

    328
  • Joined

  • Last visited

Everything posted by kevin11

  1. 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)
  2. kevin11

    hiden house

    uhm its showroom? i want opinions and if its good i do a download link
  3. kevin11

    SQL accounts

    hey all my question today = how can i save my accounts in sql?
  4. kevin11

    account.xml

    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 )
  5. kevin11

    account.xml

    can anyone fix my original code, so it will work?
  6. kevin11

    account.xml

    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 )
  7. kevin11

    account.xml

    ok ty (im trying to learn lua )
  8. kevin11

    account.xml

    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
  9. 1: close youre eyes 2: do a wish 3: go search 1-2 topics back called replace textures or something like that from pinda
  10. kevin11

    hiden house

    there is gonna be more (garage, maybe a fun stunt park, all inside the cave)
  11. kevin11

    hiden house

    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
  12. hey i got EFC infront of my name, how can i delete it?
  13. kevin11

    moving object

    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
  14. kevin11

    moving object

    sorry cant help u its weird cuz only the going up and down coordinates are edited
  15. kevin11

    moving object

    ik snap je niet zeg ff in nl
×
×
  • Create New...