Jump to content

Tomek123

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by Tomek123

  1. Tnx i go try with this id make saver
  2. function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then clothes = getPedClothes" class="kw2">getPedClothes(source,"PlayerClothes") setAccountData ( playeraccount, "play.clothes", playerclothes ) end end function onPlayerJoin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerclothes = getAccountData ( playeraccount, "play.clothes" ) if ( playerclothes ) then setPedClothes ( source, "PlayerClothes", clothes ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerJoin", getRootElement ( ), onPlayerJoin ) I start debugscript 3 and here not have warnings what is wrong pls help!
  3. Where i can see clothes id?
  4. Tomek123

    Server help!

    I am from Croatia :\
  5. LOOL i find what i search
  6. Ty, but have somthing like gun shop in single player?
  7. Is there a script gun shop?
  8. i try with this /createmarker but not work BTW. what is here wrong i try create Zombie kills saver but this script not serve kills function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getPlayerMoney ( source ) setAccountData ( playeraccount, "play.kill", playeZombieWasted ) end end function onPlayerJoin ( ) -- when a player joins, retrieve his money amount from his account data and set it local playerZombieWasted = getPlayerAccount ( source ) if ( playeraccount ) then local playeZombieWasted = getAccountData ( playeraccount, "play.kill" ) -- make sure there was actually a value saved under this key (check if playermoney is not false). -- this will for example not be the case when a player plays the gametype for the first time if ( playerZombieWasted ) then setPlayerZombieWasted ( source, playerZombieWasted ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerJoin", getRootElement ( ), onPlayerJoin )
  9. I try to make that man come in until the marker to put it into a hotel and a hotel that can get out there on where it came
  10. Ah not work i try -- this function is called whenever someone types 'createmarker' in the console: function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- get the player's position -- create a cylindrical marker next to the player: local theMarker = createMarker ( -376.8867 + 2, 2251.6767 + 2, 42.4843, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then -- check if the marker was created successfully outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker ) why not work?
  11. Where should I put the coordinates?
  12. What i must add in LUA file if i want when player go in marker then he will be teleport somewhere?
  13. Tomek123

    Server help!

    can i do somthing like to people when they come to the server to download them all with some sites like mediafire?
  14. This is for client.this script must show on scoreboard money stats. Somthing is wrong but i don' know what :\ local root = getRootElement() local player = getLocalPlayer() local counter = 0 local starttick local currenttick addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter + 1 currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player,"money",counter) counter = 0 starttick = false end end )
  15. Server all time use only 5 kb/s for upload but i have 50 kb/s upload speed where is problem?
  16. OMG i try make skin saver and don't work again ! What is wrong function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then clothes = getPedClothes(source,"PlayerClothes") setAccountData ( playeraccount, "play.clothes", playerclothes ) end end function onPlayerJoin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerclothes = getAccountData ( playeraccount, "play.clothes" ) if ( playerclothes ) then setPedClothes ( source, "PlayerClothes", clothes ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerJoin", getRootElement ( ), onPlayerJoin )
  17. Is there a script that people stick to the car?
×
×
  • Create New...