Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. Did you make it client side? And when you enter command the go out of car!
  2. Wei

    how

    ok thanks
  3. Wei

    how

    how can I make that will this camera work without gamemode ? function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
  4. local ccx,ccy,ccz,ccrx,ccry,ccrz= 0,2.5,0.1,0,0,0 local cx,cy,cz,crx,cry,crz= 0,-1.5,-0.1,0,0,-90 local x,y,z,rx,ry,rz= -0.7,-0.0,0.8,0,0,-90 local ax,ay,az,arx,ary,arz= -0.4,-0.0,0.8,0,0,-90 local aax,aay,aaz,aarx,aary,aarz= -0.1,-0.0,0.8,0,0,-90 local aaax,aaay,aaaz,aaarx,aaary,aaarz= 0.2,-0.0,0.8,0,0,-90 local aaaax,aaaay,aaaaz,aaaarx,aaaary,aaaarz= 0.5,-0.0,0.8,0,0,-90 function upgradeTheCar(cmd) local veh = getPedOccupiedVehicle ( localPlayer ) cminigun = createObject( 1636, 2,2,2) minigun = createObject( 2985, 2,2,2) base = createObject( 360, 2,2,2) abase = createObject( 360, 2,2,2) aabase = createObject( 360, 2,2,2) aaabase = createObject( 360, 2,2,2) aaaabase = createObject( 360, 2,2,2) setElementCollisionsEnabled ( base, false ) attachElements ( cminigun, veh, ccx,ccy,ccz,ccrx,ccry,ccrz) attachElements ( minigun, veh, cx,cy,cz,crx,cry,crz) attachElements ( base, veh, x,y,z,rx,ry,rz) attachElements ( abase, veh, ax,ay,az,arx,ary,arz) attachElements ( aabase, veh, aax,aay,aaz,aarx,aary,aarz) attachElements ( aaabase, veh, aaax,aaay,aaaz,aaarx,aaary,aaarz) attachElements ( aaaabase, veh, aaaax,aaaay,aaaaz,aaaarx,aaaary,aaaarz) end addCommandHandler("upgradeMyCar", upgradeTheCar) this is the sample. if you type command /upgradeMyCar it will make some things like that. You can modyfy it free P.S when you type command go out of vehicle.
  5. Wei

    little problem

    Thank both. Both of you are my life savers !!
  6. Wei

    little problem

    now i've remaded the code: setTimer( function () call ( getResourceFromName ( 'scoreboard' ), 'addScoreboardColumn', 'Group' ); local role = getElementData(sourcePlayer,'role') if role == tostring(police) then setElementData ( sourcePlayer, 'Group','Police'); end end ,5000,0) naz helped me. Whats the problem here ? ERROR: [2012-04-28 21:42:21] WARNING: testing\server.lua:5: Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
  7. Wei

    blipplayer problem.

    if ( source == blipbutplayer ) then select = guiGridListGetSelectedItem ( playerlistgrid ) if select then playerblip = createBlipAttachedTo( localPlayer, 58 ) else destroyElement(playerblip) end end end addEventHandler("onClientGUIClick", root, clientClickGuiDoThat) @Kenix Thats better ?
  8. Wei

    blipplayer problem.

    so thats commenting or what ?
  9. Wei

    blipplayer problem.

    how can I tabulate
  10. Wei

    blipplayer problem.

    OFFTOPIC: Again you not tabulate code I gave you link. Why you not read? function clientClickGuiDoThat ( ) if ( source == blipbutplayer ) then select = guiGridListGetSelectedItem ( playerlistgrid ) if select then return true playerblip = createBlipAttachedTo( localPlayer, 58 ) else return false destroyElement(playerblip) end end end addEventHandler("onClientGUIClick", root, clientClickGuiDoThat) ?
  11. Wei

    blipplayer problem.

    no when player clicks 1 more time on button.
  12. Wei

    blipplayer problem.

    now it works. if ( source == blipbutplayer ) then select = guiGridListGetSelectedItem ( playerlistgrid ) if select then playerblip = createBlipAttachedTo( localPlayer, 58 ) else destroyElement(playerblip) end end end addEventHandler("onClientGUIClick", root, clientClickGuiDoThat) but idk how to destoy it
  13. Wei

    blipplayer problem.

    How to tabulate code ?
  14. Lol Search on google: Whats my ip? and the post it
  15. What's the problem? No debug errors! function clientClickGuiDoThat ( ) if ( source == blipbutplayer ) then row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local playerblip = createBlipAttactedTo( localPlayer ) else destroyElement(playerblip) end end end addEventHandler("onClientGuiClick", root, clientClickGuiDoThat)
  16. You can change the serial without buying new computer... It depends of server. If they banned your serial and ip or only serial. But I don't support that. You were banned because a good reason (breaking rules)
  17. Wei

    Cheat codes....

    You can only script that will do the same but it would need to be /hesoyam
  18. Learn to script. We will not script for you.
  19. Wei

    little problem

    Sorry idk how to use this...
  20. Wei

    little problem

    local pGroup; call ( getResourceFromName ( 'scoreboard' ), 'addScoreboardColumn', 'Group' ); function addRoleToScoreboard() local data = getElementData(source, "role") if data == police then pGroup = "Police Officer"; end setElementData ( source, 'Group', pGroup ); end addEventHandler("onClientRender", root, addRoleToScoreboard) no errors in debug. Problem: it doesn't show the group
  21. Wei

    txd file

    not skins and not vehicles. Signs like Saur have for We want you to get 100 player in game...
×
×
  • Create New...