Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/09/16 in all areas

  1. Hi guys. I create new script for me but I decided to not use and I share it now. I want to only get your comments. You can edit some options in "options.lua". These; - Language (English and Turkish)(Current Language is Turkish)(You can add new language) - Theme Color - Effect Speed - Sound/Song - Font - postGUI - Chat Box - Radar - Maximum and Minimum Number of Characters - Options of ASCII - Use of Background Image - Camera's Position - Auto Login After Registration Press here for download it. Screenshots:
    1 point
  2. السلام عليكم ورحمة الله وبركاته هاذي اللوحة بمناسبة اعتزال الكل هاذي الفترة للتحميل اضغط هنا
    1 point
  3. addEventHandler ( 'onPlayerChangeNick' ) isPlayerMuted kickPlayer
    1 point
  4. addEventHandler ( 'onClientGUIChanged',Search, function ( ) guiGridListClear ( grdPlayers ) for i,v in ipairs ( getElementsByType ( 'player' ) ) do if string.find ( string.upper ( getPlayerName ( v ):gsub ( '#%x%x%x%x%x%x', '' ) ),string.upper ( Search ) ) then guiGridListSetItemText ( grdPlayers,guiGridListAddRow ( grdPlayers ) ,1,getPlayerName ( v ):gsub('#%x%x%x%x%x%x', ''),false,false ) end end end,false ) لم يتم التجربة ورجاءاً استخدم الايديتور للاكواد اذا طرحتها .
    1 point
  5. 1 point
  6. شباب الناس تطورت اذا عجبكم رد شخص , عطوه لايك ماحاجه تسوي إقتباس وتحط +1
    1 point
  7. You'll want to make a server-sided script for this. First off, start with using the event onPlayerLogin, this will trigger an event every time a player logs in. Now that you have a player element, you can use getPlayerAccount to get the player's account and then use isObjectInACLGroup to check if that account belongs in a specific group - such as VIP. If the player is a VIP, you then use setPlayerTeam to set the player to the team you want. That should be all you need, you have plenty of examples on how to use the event and the functions on the wiki.
    1 point
  8. -- server -- function sendRowsToClient() local result = dbPoll(dbQuery( connection, "SELECT * FROM `VList`", -1)) if result and type( result ) == 'table' then for i, v in ipairs(result) do triggerClientEvent(source, "onClientDataReceived", source, v.id, v.name, v.price) end end end -- client -- addEvent("onClientDataReceived", true) addEventHandler("onClientDataReceived", root, function(sID,sName,sPrice) local row = guiGridListAddRow ( PlayerVehicleList ) guiGridListSetItemText ( PlayerVehicleList, row, 1, sID, false, false ) guiGridListSetItemText ( PlayerVehicleList, row, 2, sName, false, false ) guiGridListSetItemText ( PlayerVehicleList, row, 3, sPrice, false, false ) end ) Try this, not tested
    1 point
  9. for index, value in ipairs(result) do -- code here end
    1 point
  10. As pa3ck said, use 'for' statement for sending each row to the client side. And this, 'client' is a clientsided pre defined variable and I don't anywhere client being defined in your function.
    1 point
  11. If you are getting more than one rows from a database, you will obviously need a loop to go through each of the rows.
    1 point
  12. Hello! Several people asked us to enable user signatures on mobile devices. In response to these feedbacks we replied they were disabled by IPS on purpose to take up less screen space. However, we are not sure about enabling them or leaving them disabled. Therefore, we would like to ask you for your opinion. Pros: More functionality for the mobile version Cons: Takes up more page space which makes forums harder to read on mobile devices. In case you don't want to see signatures at all, you could still disable them entirely in your profile settings (which would disable them on your desktop PC too though). Best Regards, The MTA Team
    1 point
  13. The [source] is just the key in the table to find the attacker for the player that was killed. If it was [attacker] then the player who killed someone could use the 911 cmd to get his self wanted.
    1 point
  14. Puedes usar slothbot o el recurso de @El_Zorro, que al parecer se esta esforzando en mejorarlo.
    1 point
  15. I think the name should be "predefined variables", not "global variables". But this is a very nice info.
    1 point
×
×
  • Create New...