Jump to content

RevManR

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by RevManR

  1. You can check , transfer box is active or not and you need to add a new event , onClientRender After that , You can make a condition , if IsTransferBoxActive() then , you can make visible your downloadscreen gui visible! Also you can make a new transfer box and hide default by https://wiki.multitheftauto.com/wiki/SetTransferBoxVisible Maybe it help you to know How change the transfer box if you want to change the transferbox so https://community.mtasa.com/?p=resources&s=details&id=18460
  2. Hi there , I created a script just for practice , and I created also a players table in mysql , and I created a connection. So I created a row like this to get player cars , I know I know its not right to make vehicles for player in this way , but I said I want to learn about it Here is my row with vehicles name in players table its default have this values 0:0,0:0,0:0 I think its like a table in mysql Im not sure , I just think it Ok this is three slots for player vehicles I wanna to import for it by a function and export too For example , player bought 3 Infernus , I want to make the row to it after bought 411:3,0:0,0:0 and when slot number one is full going on slot number two For example again , the player bought another vehicle likes two elegy car 411:3,562:2,0:0 and when player login with onPlayerLogin Event , server create that infernus's also I put that database sql code for import to view better ! -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2021 at 06:11 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @[email protected]@CHARACTER_SET_CLIENT */; /*!40101 SET @[email protected]@CHARACTER_SET_RESULTS */; /*!40101 SET @[email protected]@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `mta_server` -- -- -------------------------------------------------------- -- -- Table structure for table `players` -- CREATE TABLE `players` ( `id` int(11) NOT NULL, `nick` varchar(32) NOT NULL, `password` varchar(64) NOT NULL, `money` int(11) NOT NULL DEFAULT 0, `vehicles` text NOT NULL DEFAULT '0:0,0:0,0:0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `players` -- INSERT INTO `players` (`id`, `nick`, `password`, `money`, `vehicles`) VALUES (1, 'Amell', '46fa16h46e16e84f9e84g6a10e0e1a3s0f56i0jjg6', 26544, '0:0,0:0,0:0'); -- -- Indexes for dumped tables -- -- -- Indexes for table `players` -- ALTER TABLE `players` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `players` -- ALTER TABLE `players` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET [email protected]_CHARACTER_SET_CLIENT */; /*!40101 SET [email protected]_CHARACTER_SET_RESULTS */; /*!40101 SET [email protected]_COLLATION_CONNECTION */; thanks in advance !
  3. Hi , I write a sample function to return me a value ! Before this function I have a table with rankingList name And I Have some data on table ! here is the code of the function to return me the rank type ! function gettheranktype(rankID) rankID= tonumber(rankID) if rankID> 0 and rankID < 10 then -- Check if rank more 0 than and lower 10 then return rankingList[rankID][5] -- now do it else return false end end everything's until here is Ok ! but the main question is : how I can get the returned value !? for example print returned value to outputChatBox() and etc ... Sorry for my bad english ! Best regards !
  4. Hello , How I can get a player chats (Show me only) I need a function or a little help to do this , Best regards!
  5. Hello , I use mta default scoreboard , so I want to set color for other columns like Player Name Tag Color is here any function? I also set settings in meta.xml for hex but dont worked!
  6. Hi, I have just started writing scripts in MTA, I solved a series of problems for practice. I'm looking for an event or function to solve this! I want a player to be not able to push a vehicle, not freeze, but not easily shake the vehicles by pushing. What function or event should I use? Sorry for bad english
×
×
  • Create New...