Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. createMarker setElementPosition getElementType onMarkerHit
  2. Yes and sometimes when i join a server .
  3. سطر 6 يحط للزر المنت داتا وش الهدف منه؟ +سطر 5 بالسيرفر فيه قوس زايد --server addEvent("money", true) addEventHandler("money",root, function () givePlayerMoney (source, math.random (900,1200) end ) لا مافية ناقص -_-" قوس
  4. I tried to add vehicle upgrades but there's no crash >< sorry.
  5. 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 >< !
  6. Yes but i don't use it | = i'm just driving i don't add any upgrades .
  7. When i connect to the server and when i'm playing. My server : mtasa://5.45.176.200:2013
  8. Wow .. : http://pastebin.mtasa.com/883052436
  9. Are sure you're in the acl group?
  10. 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
  11. 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 )
  12. You mean if you hit the marker again you don't want to anim the player?
  13. onPlayerSpawn giveWeapon Topic should moved to scripting section.
  14. isElement destroyElement playSound onClientGUIClick
  15. 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.
  16. iPrestege

    Join Failed

    Post the server side.
  17. Please read this : https://forum.multitheftauto.com/viewtopic.php?f=115&t=54447 .
  18. 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 );
  19. 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)
  20. 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)
  21. 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)
×
×
  • Create New...