Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. ورني الميتا ومتاكد هذا المود كامل ؟
  2. iPrestege

    Pls help

    -.- I Just test it and work's fine what the 'debugscript 3' Say?
  3. -- # Server Side function setCriminal ( player ) if getPlayerTeam ( player ) == getTeamFromName ( "Criminals" ) then outputChatBox ("You are already a Criminal!",player,255,0,0) return end setPlayerTeam (player,getTeamFromName( "Criminals" ) ) outputChatBox ("You are now a Criminal!",player,255,0,0) end addCommandHandler("criminal",setCriminal)
  4. iPrestege

    Pls help

    Will i just test it and work's fine make sure it's server side and copy it again -.-
  5. First welcome to the mta forum . Second you're posting on the wrong section ! Scripting Section Here And you're problem is you are set the meta.xml file to client and the script should be server and change get root element to get resource root element get this resource > resourceRoot .
  6. للمعلومية لازم تكون اضواء السياره شغاله عشان يشتغل المود ! -- # Client Side GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(306, 10, 313, 120, "Light By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF22F905") GUIEditor.button[1] = guiCreateButton(9, 34, 113, 55, "Light On", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFAF703") GUIEditor.button[2] = guiCreateButton(190, 34, 113, 55, "Light Off", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") guiSetVisible (GUIEditor.window[1], false) bindKey("F1","down", function ( ) guiSetVisible ( GUIEditor.window[1] , not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Lights",localPlayer,"On") elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Lights",localPlayer,"Off") end end ) -- # Server Side Car = { } addEvent("Lights",true) addEventHandler("Lights",getRootElement(), function ( State ) Car[source] = getPedOccupiedVehicle( source ) if ( Car[source] ) then if ( State == "On" ) then for i = 0,3 do if ( getVehicleLightState ( Car[source],i ) == 0 ) then return outputChatBox("* You're vehicle light's is already working",source) end end for i = 0,3 do setVehicleLightState( Car[source],i,0 ) end elseif ( State == "Off" ) then for i = 0,3 do if ( getVehicleLightState ( Car[source],i ) == 1 ) then return outputChatBox("* You're vehicle light's is already not working",source) end end for i = 0,3 do setVehicleLightState( Car[source],i,1 ) end end end end )
  7. Try to install another gta sa .
  8. Will i don't think this script is available on the community or any mta source but you can make you're own .
  9. رح ترجم وتعال قلي وين اللي يسوي الداتا
  10. مآهو تحطيم بس اذا مافرقت بين هذي وش تفرق فية بعدين؟
  11. OK Download and run the mtaDiag : Here
  12. Try to re-install 'Gta:Sa' Then 'Mta:Sa' .
  13. iPrestege

    how to speed fps up?

    Your device is too old it's the time to buy a new device!
  14. iPrestege

    small help

    You mean the problem is the marker creating more than one?
  15. التايمر خلة متكرر , انصحك رندر تحديث اسرع ..
  16. اممم الكلنت رندر راح يكون افضل : onClientRender
  17. -- Server addEventHandler ( "onResourceStart", resourceRoot, function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS SQL_Amlak_System (serial,name,number)" ); outputDebugString("SQL Data Base Started!",0,0,255,0,0); for i, player in ipairs( getElementsByType( 'player' ) ) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Console" ) ) then setElementData( player, 'isAdmin', true); else setElementData( player, 'isAdmin', nil); end end end ); function setSQL_Amlak_System ( serial,name,number ) return executeSQLQuery ( "INSERT INTO `SQL_Amlak_System` ( `serial`, `name` , `number` ) VALUES ( ?,?,? )", tostring(name),tostring(serial),tostring(number) ); end; function SelectFromSql ( ) local data = executeSQLQuery ( "SELECT * FROM SQL_Amlak_System" ) if ( type ( data ) == "table" and #data == 0) or not data then return { }; else return data; end; end; function UpDateListInSql ( element ) if ( not isElement ( element ) ) then return; end; local Upsql = SelectFromSql ( ); triggerClientEvent ( element, "AddSerialName", element, Upsql ); end; addEvent ( "Rferesh", true ) addEventHandler ( "Rferesh", root, function ( ) UpDateListInSql ( source ); end ) addEvent ( "SQL_Save", true ) addEventHandler ( "SQL_Save", root, function ( serial,name,number ) setSQL_Amlak_System ( serial,name,number ); triggerClientEvent ( root, "AddDataSerialName", root,serial,name,number ); end ); addEventHandler( 'onPlayerLogin', root, function( _, acc ) if isObjectInACLGroup( 'user.'..getAccountName( acc ), aclGetGroup( "Console" ) ) then setElementData( source, 'isAdmin', true); else setElementData( source, 'isAdmin', nil); end; end ); addEventHandler( 'onPlayerLogout', root, function( _, acc ) triggerClientEvent( source,'LogOutSetVisible',source); setElementData( source, 'isAdmin', nil); end ); addEventHandler( 'onPlayerJoin', root, function( ) setElementData( source, 'isAdmin', nil); end )
  18. تقدر تدور الخط بالنت عن طريقة اسمة وتحط الحجم اللي تبية ؟!
  19. من اليمين Download for windows .
  20. local TheFont = guiCreateFont ( "FilePath.ttf",Size ) guiSetFont ( element,TheFont )
  21. Resources = { [1] = "crazy"; [2] = "mugging"; [3] = "gang"; }; addEventHandler ("onResourceStart",resourceRoot, function ( ) setTimer ( function ( ) local random = Resources [ math.random ( #Resources ) ] local res = getResourceFromName( random ) if not res then return end startResource ( res ) outputChatBox ( "Dispatch here, all units standby for callout" ) end,300000,0 ) end ) Does that what are you trying to do ?
×
×
  • Create New...