-
Posts
814 -
Joined
-
Last visited
Everything posted by Wei
-
Did you make it client side? And when you enter command the go out of car!
-
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)
-
Look my edited post.!
-
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.
-
Thank both. Both of you are my life savers !!
-
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]
-
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 ?
-
so thats commenting or what ?
-
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) ?
-
no when player clicks 1 more time on button.
-
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
-
Lol Search on google: Whats my ip? and the post it
-
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)
-
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)
-
You can only script that will do the same but it would need to be /hesoyam
-
Learn to script. We will not script for you.
-
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
