Jump to content

'LinKin

Members
  • Posts

    636
  • Joined

  • Last visited

Everything posted by 'LinKin

  1. 'LinKin

    Excel in MTA

    @Dealman: Nice work man! Do you know if there's a way to download a .png image? If there are more styles?
  2. No I think you must not use 'isPlayerMuted' 'setPlayerMuted' aren't they the default functions from MTA? Look do this: On the function that /pmute triggers, play with "setElementData" and "getElementData" For example; setElementData(tipu,"muteOnMain",true) And in the function handled by onPlayerChat, use getElementData(tipu, "muteOnMain"), it will return true if he's muted. then cancelEvent() EDIT: function mutePlayer(thePlayer, theCommand, theTarget) local toPlayer = getPlayerFromName(theTarget) if getElementData(toPlayer, "mutedOnMain") == false then setElementData(toPlayer, "mutedOnMain", true) elseif getElementData(toPlayer, "mutedOnMain") == true then setElementData(toPlayer, "mutedOnMain", false) end end addCommandHan.....mutePlayer) function playerChat(message, messageType) if getElementData(source, "muteOnMain") == true then if messageType ~= 2 then cancelEvent() outputChatBox ( "You are muted in public chat", source, 255, 255, 255, true ) end end end addEventHand..."onPlayerChat") So yeah Gibril, you must toggle the function mutePlayer using the same command. And well, now you've got the general look of it, You can add details as you wish.
  3. 'LinKin

    Excel in MTA

    Thank you. Do you know anything similar to this so that I can take it as an example? Because I'm thinking that a normal progress bar will not look like http://postimg.org/image/kb05e7if1/
  4. 'LinKin

    Excel in MTA

    Hi guys, I was wondering if it is possible to make something similar to what excel does with some statistics. Excel can draw images such as this http://4.bp.blogspot.com/-jvCLRDjjyv0/U ... tortas.png Is it possible to make something like this in MTA? If making a circle image isn't 'possible'; Then; what about making something like a progress bar? Something like this: http://postimg.org/image/kb05e7if1/ Where the % is taken from some player's stats (i.e Kills/Deaths)
  5. Hello, Since the last 2 or 3 MTA:SA updates, I've noticed that whenever I connect to a server, this message appears in the chatbox "say: Invalid text lengh" I've checked my binds.. They're normal! I get that message at every server I join I've 3 PCs, I see the same message on all of them! So, I think it is not a problem cause by me, but something related to MTA in itself. This did not happened to me before. Do you know what is causing that? Thanks.
  6. Hello, I'm planning to make some stats for race. I've seen that people say that SQL is way better than using a .xml file to save the data. So I've some questions; 1. I think I must create a table (executeSQLCreateTable) once the resource is started (onResourceStart). But, I see that way will create another NEW table everytime the resource is started (Probably a server's restart). Meaning that the 'old' data will be lost. How can I make it so that the data is truly safe? 2. If I use XML as an alternative way, when the file becomes bigger (too many players' data) will the server lag? Any consequence? 3. If I choose to work with XML, if I wanted to move the data from the current server to a new one, copy-pasting the resource into the new server will allow me to move the data? (Of course the script must have a fuction to load player's data from the .xml file). 4. Similar to 3, if I choose to work with SQL, how can I move the data from the current server to another one? 5. Has the syntax of SQL changed? Because in the wiki I see this example: executeSQLCreateTable ( "players", "clothes_head_texture TEXT, clothes_head_model TEXT, player TEXT" ) But in other script, I see something like: executeSQLCreateTable ( "players", "clothes_head_texture STRING, clothes_head_model STRING, player STRING" ) Or both ways are correct? EDIT: I just saw that some updates were done. Now mostly of SQL functions are called with executeSQLQuery Regards, LinKin.
  7. Guys, when I restart the admin, in the console it says: Cannot read conf/IpToCountryCompact.csv Is it a bad signal or something? I did what csmit195 said ("3) Now go to conf folder and delete IpToCountryCompact.csv.") It seems to be working, but I just wanted to ask. EDIT: Now I understand. When you type 'makecvs' into console, it creates this file: IpToCountryCompact.csv
  8. It's not a big problem, just wondering why that happen This is what other arrows look like (from Justonex's script and some other server) https://community.multitheftauto.com/im ... s/3811.png http://img837.imageshack.us/img837/1378/443s.png http://img855.imageshack.us/img855/1285/2q7c.png http://img59.imageshack.us/img59/5126/du7y.png http://img31.imageshack.us/img31/2687/4bad.png
  9. Gosh. Arrow is pointing ok! I'm asking about the model of the arrow. Visual aspect
  10. Thanks Danny, arezu, Justonex. As I said, it's working fine, the horizontal and vertical rotation is perfect. I was just asking for the model of the arrow, because my arrow is different from others.. I don't know why. Im using the same model as others. Maybe it is something else that changes its aspect?
  11. Thanks. Now I'm looking at Jusonex's script and I see that the arrow that he creates is different from the one I create.. I'm currently using this arrow_id = 1318 Jusonex, can you tell me which arrow_id you're using? Because yours is way better than mine. (More visible, understable) This is what my arrow looks like: http://i.imgur.com/Owe1rs0.png http://i.imgur.com/tCcJsCn.png
  12. 'LinKin

    Water walk

    Walk on water.. Not sure. But I do know how to drive on water
  13. 'LinKin

    Very slow downloads

    Is there a benefit by uploading only .zip resources to a server instead of normal folders? Does that influence in the clients' download?
  14. What is that, Jusonex?.. I see it's like a part of a script.
  15. Also. Is it possible that the arrow points to a target in 3D? I mean, I see most of GPS systems just turn the arrow horizontally. Is it possible to make an arrow point to the target vertically too? For example; If the target is under you, it points down. If target's over you, it points up. If target's diagonally, it points diagonally (vertical & horizontal rotation)
  16. Thanks. Btw, why onClientPreRender and not onClientRender?
  17. Hm Does someone know how can I rotate the arrow so that it points to a moving vehicle everytime? It's kinda hard because the vehicle is on movement...
  18. 'LinKin

    Very slow downloads

    I've had this internet for so long, never had this trouble. Anyway I'm starting to believe there's something wrong with it because I get slow downloads in every server http://www.speedtest.net/my-result/3201636341 Deleted everything from MTA:SADirectory/mods/deathmatch/resources still no result
  19. 'LinKin

    Very slow downloads

    Hello, Recently, I've noticed that MTA downloads are extremetly slow.. Even 563 kB lasts no less than a minute to finish. Why's that? My ping is normal. I don't think it's internet's problem
  20. Hello, When I create an arrow and attach it to a player, I want it to be visible only for the player that it's attached to.. How can I do that via serverside? setElementVisibleTo ( theArrow, getRootElement(), false ) did not work.. Everyone can see the arrow
  21. Thanks TALP. Got it working. Might ask for some help later
  22. Hello, I'm working on a script that creates markers over the players. It's working good so far. But, I need something; I want the marker to be visible only to the players that are in the same team than the player who created it. How can I do this? (Currently it's visible to root) Thanks.
  23. Thanks TALP. I just found out that in another script I made, I had a similar trouble, so instead of writting 'root' in the clientevent, I wrote getLocalPlayer() and it worked.. What do you say about this getLocalPlayer() ?
×
×
  • Create New...