Renkon
Members-
Posts
876 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Renkon
-
cancela el evento onPlayerLogout y listo
-
Cierto, nunca usé command handlers client-side.
-
I once knew a guy who made a topic concerning a guy who asked for help after setting his Server IP. Hes dead now. LEARN FROM YOUR MISTAKES
-
What is it? MTA Messenger will be an innovative way to communicate with your friends while playing MTASA no matter which server will you be playing. You will be able to contact anybody in any server (having the resource installed, obviously) so that you can arrange meetings, conversate and/or do whatever you want! You will only need an account which you will be able to register in any server containing the script. No need to worry about being careful when minimizing the game to get killed, or to fail because of checking your Skype messages, you will be able to chat practically the same way you do, but inside MTA! How will it work? MTA Messenger will have a custom database (not found where can I store it yet) to store basic information like accounts, contacts and many stuff more in order to work properly. In addition, to manage messages and similar it will simply work using a simple data-transfer from server to server (resource to resource). Messages won't be logged or similar (at the moment) and you will not be able to contact people you do not have on your buddy list. Screenshots Not yet made. Development has just started. Changelog 0.1a Little info displayed in screen Login GUI is finished getServerIP for HTTP contact (thanks MCvarial) Started development [*]Message I am trying to give MTA a big hand in what matters to communication. There has not been any really global and massive resource to communicate between people from different servers so, since Castillo's project was called off by himself, I have started working on this to make your gaming experience better. I will try to work on this as much as I can. At the moment I am looking for a MySQL database to be able to save data which is required globally. I hope guys you will enjoy this resource (if I ever manage to finish it) and well, time to work on it. Renkon.
-
addCommandHandler("musica", function(p, _, url) if not playSound(url) then outputChatBox("error") end end )
-
function teleport(source) setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) setTimer(function() outputChatBox("Ola k ase", root, 255, 0, 0, true) end, 300000,1) end addCommandHandler("zonaafk", teleport)
-
Pruebalo tú también y vas a ver que funciona, aunque por onClientRender, va ocupar espacio en los cálculos de tu procesador,... pero eso se puede arreglar. Justamente por eso mismo digo que no tiene sentido,. Es cuestion de usar un createBlipAttachedTo y en VisibleTo poner getPlayersInTeam(getPlayerTeam(...))
-
Eso es horrible y no tiene sentido
-
In other words you just have to swap and flip break with return true or simply remove 'break' since its not necessary due to the return..
-
Usa createBlipAttachedTo y como argumento en visibleTo usa getPlayersInTeam(getPlayerTeam(elPlayer))
-
Using ACL is the only wait sir. And you can manually modify the resources if you don't wanna show the message
-
--Ejemplos addEventHandler("onPlayerJoin", root, function() outputChatBox(getPlayerName(source).."'s serial: "..getPlayerSerial(source), root, 255, 255, 0) executeSQLQuery("INSERT INTO tabla(a1, a2, a3, ..) VALUES ....") end) Ahi tenes ejemplo de cada funcion
-
getPlayerSerial -- para tener el serial executeSQLQuery -- para usar querys de insert y select en SQLite outputChatBox -- para mostrar el dato
-
if not getElementData(v, "fuel") then .... if that's what you want to fix
-
addEvent ( "spawnDodo", true) addEventHandler ("spawnDodo", root, function () local v = getPedOccupiedVehicle(source) if v then destroyElement( v ) end local dodo = createVehicle ( 593, 1580.09619, 1358.62195, 16, 0, 0,180 ) warpPedIntoVehicle( source, dodo ) outputChatBox ("#00CD66You will now take your first flight! Go to the blip marked on your map to pickup your first passenger.", source,24,116,205, true) fixVehicle ( dodo ) outputChatBox ("#EE9A00Please make your way to the terminal to pick the passnegers.", source,24,116,205, true) --destroyElement ( getRootElement() ) end )
-
Make sure onPlayerLogin and onPlayerRegister are NOT cancelled.
-
Usa un math.random y un if/else.
-
Yo quiero trabajar en Google Inc., forjar un matrimonio y vivir feliz, pero todo no se puede addCommandHandler
-
Evenmore what if client changes IP?
-
The most probable reason is that you were still triggering the latent client event when you restarted the resource so it may have been fine that you couldnt do anything. Despite other stuff, I actually use triggerClientEvent and I pass 1 kilobyte in each trigger so it doesnt get saturated...
-
You gotta make a command handler and then bind it to key L with the following arguemnts (if im not wrong) bindKey("L", "down", "commandHandler", "chatbox")
-
There is no standard resoruce for chat. It comes coded in the client already, however you can manipulate it using events or functions such as onPlayerChat and outputChatBox
