Jump to content

SonicTHedgehog

Members
  • Posts

    27
  • Joined

  • Last visited

Details

  • Gang
    S.T.A.R.S

SonicTHedgehog's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Well .. i am a scripter but not an experienced scripter .. so i want to get experience from other players scripts.. i check every script i see and try to use all of them in a script i make ... well i saw this and i dont know what is the meaning of it.. ! function drawSpectators() local textX = x - spectatorSettings.xOffset local textY = spectatorSettings.yOffset dxDrawText("MIRANDO: "..tonumber(#spectators), textX - 0.2, textY - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00MIRANDO: #ffffff"..tonumber(#spectators), textX, textY, x, y, tocolor(83, 134, 139), 0.4, "bankgothic") dxDrawText("FPS: "..tonumber(getElementData(getLocalPlayer(), "fps")), textX - 0.2, textY + 15 - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00FPS: #ffffff"..tonumber(getElementData(getLocalPlayer(), "fps")), textX, textY + 15, x, y, tocolor(15, 192, 252, 255), 0.4, "bankgothic") dxDrawText("$: "..tonumber(getPlayerMoney(getLocalPlayer())), textX - 0.2, textY + 15 + 15 - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00$: #ffffff"..tonumber(getPlayerMoney(getLocalPlayer())), textX, textY + 15 + 15, x, y, tocolor(15, 192, 252, 255), 0.4, "bankgothic") setTimer ( updateText, 1000, 0 ) end its snoopcat script .. can some one tell me the meaning and the details of this script ??
  2. I made a spawn script .. i want it to work only with players that first time they join ... ... I mean i use login gui it covers the spawn button .. when a player(not new) login the spawn button or the script to disappear And if a player register the login gui dissapear but the script keep working... sorry for my bad english
  3. I have a spawn script.. it make players choose thier skin before playing.. i want it just for new players( the players that join the server first time) because i want to save the registered players skins + position .. help me please + i can you tell me how to make a script that every one can use it .. just for admins ? or a team that i choose ? help me if thats possible. ty
  4. in 1.0.5 cant switch users & cant run multiple clients what about 1.1 ?????????????
  5. i know how to spawn a vehicle on any x,y,z but how to make the player spawn in the vehicle ? because when i spawn vehicle on any x,y,z using marker it spawns alot of vehicles if the player is still standing on the marker so i want the player to spawn in the car. help me please if you know how. thanks
  6. How to make a ped ?? and how to make it with anim or weapon ? help me please ???
  7. 1.When i set my team to police or another team by the admin panel it change my team for few seconds then i back without team . 2.Need help with Create Vehicle when player hitmarker function policecarsmarkeronStartup () policecarsChangeMarker = createMarker (1567.0947265625, -1607.6402587891, 13.3828125, "cylinder", 1.5, 0, 0, 0, 255, getRootElement()) setElementInterior (policecarsChangeMarker, 0) end addEventHandler("onResourceStart", getRootElement(), policecarsmarkeronStartup) function policecarsmarker (hitPlayer, matchingDimension) if (source == policecarsChangeMarker) then outputChatBox ("Press 1,2,3,4 to select a Police car from 4 cars", hitPlayer, 255, 0, 0, false) outputChatBox ("And press 'enter' when you find a good one", hitPlayer, 255, 0, 0, false) toggleAllControls (hitPlayer, false, true, false) bindKey (hitPlayer, "1", "down", policecarsChangeMarkerBindKeys) bindKey (hitPlayer, "2", "down", policecarsChangeMarkerBindKeys) bindKey (hitPlayer, "3", "down", policecarsChangeMarkerBindKeys) bindKey (hitPlayer, "4", "down", policecarsChangeMarkerBindKeys) bindKey (hitPlayer, "enter", "down", policecarsChangeMarkerBindKeys) end end addEventHandler("onMarkerHit", getRootElement(), policecarsmarker) function policecarsChangeMarkerBindKeys (vehicle, key, keystate) if (key == "1") and (keystate == "down") then local vehicle = createVehicle (vehicle) createVehicle (vehicle, 60000) end if (key == "2") and (keystate == "down") then local vehicle = createVehicle (vehicle) createVehicle (vehicle, 404) end if (key == "3") and (keystate == "down") then local vehicle = createVehicle (vehicle) createVehicle (vehicle, 505,65000) end if (key == "4") and (keystate == "down") then local vehicle = createVehicle (vehicle) createVehicle {442,45000} end if (key == "enter") and (keystate == "down") then toggleAllControls (thePlayer, true, true, true) unbindKey (thePlayer, "1", "down", policecarsChangeMarkerBindKeys) unbindKey (thePlayer, "2", "down", policecarsChangeMarkerBindKeys) unbindKey (thePlayer, "3", "down", policecarsChangeMarkerBindKeys) unbindKey (thePlayer, "4", "down", policecarsChangeMarkerBindKeys) unbindKey (thePlayer, "enter", "down", policecarsChangeMarkerBindKeys) end end as you see here i wrote create vehicle and tried every thing .. but still not working. 3.4. When i die on LS i respawn on LS hospital but when i die in SF or LV i respawn in LS hospital !! any one can help me ? or give me a link for hospital respawn ? ( i dont mean script one for me .. i mean if you know one please give me the link ) Sorry am new on scripting ( NOOB )
  8. I am trying to make a marker and when player get in it his team set to police(and if u can tell/show me how to make it with "yes & no" buttons) then it shows what i wrote on the chatbox i think every thing is right exept the set team part.. when i try it .. it says ,(, expected near ,if, in the server.exe .. please help me .. and as what i said last time .... i am new in scripting so i need help. thanks function policeinfomarkeronStartup () policeinfoChangeMarker = createMarker (1554.5867919922, -1675.6022949219, 16.1953125, "cylinder", 1.5, 255, 0, 0, 255, getRootElement()) end addEventHandler("onResourceStart", getRootElement(), policeinfomarkeronStartup) function policeinfomarker (hitPlayer, matchingDimension) if (source == policeinfoChangeMarker) then outputChatBox ("Now you are a police but you need police clothes and stick", hitPlayer, 255, 0, 0, false) outputChatBox ("Go and get them from LasVentas PoliceStation", hitPlayer, 255, 0, 0, false) outputChatBox ("Good luck", hitPlayer, 255, 0, 0, false) end end addEventHandler("onMarkerHit", getRootElement(), policeinfomarker) function policeinfomarker (hitPlayer, matchingDimension) if (source == policeinfoChangeMarker) then local r, g, b = getTeamColor(Police) setPlayerTeam(player, Police) end addEventHandler("onMarkerHit", getRootElement(), policeinfomarker)
  9. This is it ! check it if there is some thing wrong ! shotg.lua function replaceFunction( ) txd = engineLoadTXD ( "data/shotg.txd" ) engineImportTXD ( txd, 22 ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),replaceFunction) meta.xml <meta> <info author="SonicTheHedgehog" type="Weapon" name="ShotG" /> <script src="shotg.lua" type="client" /> <file src="data/shotg.txd" type="client" /> </meta> Lol sorry again
  10. And is there some thing wrong with the meta.xml ??
×
×
  • Create New...