-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
createMarker setElementPosition getElementType onMarkerHit
-
Yes and sometimes when i join a server .
-
سطر 6 يحط للزر المنت داتا وش الهدف منه؟ +سطر 5 بالسيرفر فيه قوس زايد --server addEvent("money", true) addEventHandler("money",root, function () givePlayerMoney (source, math.random (900,1200) end ) لا مافية ناقص -_-" قوس
-
I tried to add vehicle upgrades but there's no crash >< sorry.
-
Sorry but the server is for arabs i don't know if you can understand out language but i can take you there P.S : Maybe someone was near of me >< !
-
Yes but i don't use it | = i'm just driving i don't add any upgrades .
-
When i connect to the server and when i'm playing. My server : mtasa://5.45.176.200:2013
-
Wow .. : http://pastebin.mtasa.com/883052436
-
Are sure you're in the acl group?
-
Still getting the crash Version = 1.3.3-release-5618.0.000 Time = Sun Jul 14 01:09:54 2013 Module = D:\GtaSa\gta_sa.exe Code = 0xC0000005 Offset = 0x000C8F24 EAX=1DA29510 EBX=008A7740 ECX=00000030 EDX=3E8B89C2 ESI=3EC89F62 EDI=00B3E164 EBP=00000120 ESP=0028F398 EIP=004C8F24 FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B + Version = 1.3.3-release-5618.0.000 Time = Sun Jul 14 01:17:47 2013 Module = C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6871_none_50944e7cbcb706e5\MSVCR90.dll Code = 0xC0000005 Offset = 0x00051B83 EAX=00000002 EBX=0DE77FFA ECX=7FFFFFFE EDX=00000053 ESI=00000000 EDI=00000002 EBP=0028FA80 ESP=0028F7FC EIP=74C61B83 FLG=00210202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
-
addEventHandler( "onClientGUIClick",root, function ( ) if source == GUIEditor.staticimage[3] then if not guiGetVisible ( cRules ) then guiSetVisible ( CMember , false ) guiSetVisible ( CRules ,true ) guiSetVisible ( CInfo, false ) showCursor(true) else guiSetVisible ( CRules ,false ) showCursor ( false ) end end end )
-
You mean if you hit the marker again you don't want to anim the player?
-
onPlayerSpawn giveWeapon Topic should moved to scripting section.
-
isElement destroyElement playSound onClientGUIClick
-
local pepsi = createObject( 955, 1463.5, -2206, 12.5, 0, 0, 0 ) local marker = createMarker( 1464.3000488281, -2208.1000976563, 13.5, "cylinder", 1, 255, 255, 255, 0 ) function givePepsi ( psource ) if getElementType ( psource ) == "player" then if isObjectInACLGroup( "user."..getAccountName ( getPlayerAccount ( psource ) ), aclGetGroup( "Everyone" ) ) then setPedAnimation( psource, "VENDING", "VEND_Drink_P" ) outputChatBox ( 'Anim Start' ) end end end addEventHandler("onMarkerHit", marker, givePepsi) Try this.
-
psource isn't defined.
-
Agree +1
-
Please read this : https://forum.multitheftauto.com/viewtopic.php?f=115&t=54447 .
-
addEvent( "onZombieWasted", true ); addEventHandler( "onZombieWasted", root, function ( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 69 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 5 ); end end end );
-
Sorry change this : function ZombieKill ( killer, weapon, bodypart) if ( killer and killer ~= source and getElementType ( killer ) == 'player' ) then if ( bodypart = 9 ) then local old = getPedStat ( killer,69 ) local new = old +5 setPedStat(killer, 69,new ) end end end addEventHandler("onZombieWasted",getRootElement(),ZombieKill) addEvent("onZombieWasted",true) To : function ZombieKill ( killer, weapon, bodypart) if ( killer and killer ~= source and getElementType ( killer ) == 'player' ) then if ( bodypart == 9 ) then local old = getPedStat ( killer,69 ) local new = old +5 setPedStat(killer, 69,new ) end end end addEventHandler("onZombieWasted",getRootElement(),ZombieKill) addEvent("onZombieWasted",true)
-
Client : GUIEditor = { window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 115, 457, 548, "Weapon Skills Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1],false ) GUIEditor.staticimage[1] = guiCreateStaticImage(25, 46, 63, 58, ":shop1/images/22.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(90, 84, 22, 15, "0%", false, GUIEditor.window[1]) end ) function Nothing() local stat = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[1],""..stat ) end addEventHandler("onClientRender", getRootElement(), Nothing) bindKey("F7","down", function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end)
-
Try this : function ZombieKill ( killer, weapon, bodypart) if ( killer and killer ~= source and getElementType ( killer ) == 'player' ) then if ( bodypart = 9 ) then local old = getPedStat ( killer,69 ) local new = old +5 setPedStat(killer, 69,new ) end end end addEventHandler("onZombieWasted",getRootElement(),ZombieKill) addEvent("onZombieWasted",true) GUIEditor = { window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 115, 457, 548, "Weapon Skills Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(25, 46, 63, 58, ":shop1/images/22.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(90, 84, 22, 15, "0%", false, GUIEditor.window[1]) end ) function Nothing() local stat = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[1],""..stat ) end addEventHandler("onClientRender", getRootElement(), Nothing) bindKey("F7","down", function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end)