-
Posts
1,193 -
Joined
-
Last visited
Everything posted by tosfera
-
Maybe you could explain him, and me, why? MTA is working with the semicolumns but also without. it has no single effect to the code and won't be unstable nor less powerfull. It is a matter of way to write your code. You can say it's part of the scripters coding standards.
-
onClientRender, dxDrawImage and basic knowledge of keeping track of the position, rotation and actual finished animations. )
-
addEventHandler ( "onClientPlayerDamage", root, function ( theWeapon ) if ( theWeapon == 16 ) then -- if it's an grenade, just for an example. cancelEvent(); end end ); After that, change the 6 in your explosion to 0
-
Using the function will damage the player, if you don't want them to get damaged you should cancel the onPlayerDamage or onClientPlayerDamage whenever it is an explosion. Please note that exploding vehicles, grenades, RPG's and such will not work anymore too.
-
Hey guys, It's been a while since I've been at this section so, hey! I'm currently trying to get a scrollbar on this that won't fit on 1 screen. I know I can use the MMB to scroll and change the indexes of rows, but what if I want to move entire gui's? Just asking for a way of thinking. ^^ Thanking you in advance
-
"RPG", that's everything except "serious roleplayers". If they loved vG, they'll love Advanced Gaming RP. Not trying to brag about my own server right now, but I've got 2 admins which have been playing vG and rG until it died. They know their stuff and are taking their ideas to the next generation of MTA-RP and I'm scripting them. If you guys are interested in joining, ex-vG members are always welcome to write an application for the closed alpha! It sounds like a great deal, and who knows who'll be joining your new 'gang'. God, this sounds so selfish! sorry sorry sorry!
-
You might've seen my name, but not my skills. I'm known with 9 programmings languages which also includes C++ / C# AND very much knowledge in PHP. If you require any assistance, feel free to send me a PM. We'll see what I can do for you guys, I'd love to help you.
-
Why do you want to create an XML file to store userdata? If someone manages to get the xml file your entire account system would be ehh... wide open. I'd suggest to use a database. It can be a local database or a bigger one that's extern.
-
[Error] Attempting to compare a number with a boolean
tosfera replied to BrastaSauce's topic in Scripting
An easier way would to to just add a simple check to your script above the getCursorPosition() and let it quit the script whenever your cursor isn't showing; if not ( isCursorShowing() ) then return; end -
That's not really the issue as I commented out that line to see if it was the problem, and it was not. Try this one, don't forget to put on your debugscript so you see if it's going wrong. addCommandHandler ( "jevifire", function ( thePlayer ) if ( getTeamFromName ( "Los Santos Fire department" ) ) then for i, p in ipairs ( getPlayersInTeam ( getTeamFromName ( "Los Santos Fire Department" ) ) ) do outputChatBox ( "[RADIO] This is dispatch, ew've got a report from a fire at via the emergency line, over.", p, 245, 40, 135 ); outputChatBox ( "[RADIO] Please report there now.", p, 2450, 40, 135 ); end if ( exports.global:isPlayerAdmin ( thePlayer ) ) then triggerClientEvent ( "burnbabyburn", getRootElement(), jevifire ); triggerClientEvent ( "ringTheBell", root, fdbell ); outputChatBox ("Fiiiire!", thePlayer ); end else outputDebugString ( "Missing the team" ); end end );
-
There is a dxDraw function to draw your screen again in another position, if you would resize this to a smaller view it would just work find. The function uses the clientRender and won't lag if you write it carefully. DxCreateScreenSource
-
I would say create the entire system of CoD. Let players create their own rooms / matches or search one. Just create the TDM and S&D for now. Oh, all free for all. matching them up in games from idk.. 20 mins? If you require help, just contact me.
-
IntroNet Servers : 100% High Performance guaranteed
tosfera replied to intronet's topic in Hosting solutions
Are you also providing a DDOS-protection, access to the netwerk settings and firewall of the devices? -
I used to have this problem with windows 7, no idea how I fixed it without the fullscreen thingy haha. It always worked for me, switching from fullscreen back to windowed. :\
-
The cursor problems seems to me that your system is trying to start GTA SA in a fullscreen mode on a smaller resolution. You aren't able to go to one of the sides of the screen because your system tells the cursor; the full screen stops here. Can you try to start MTA in fullscreen and then window it to something like, 800 x 600?
-
Is this a custom windows 8 patch? Would be awesome if you could release it for others on a more... noticable place. Also, is it 32 or 64 bit related? I haven't had any problems yet because I didn't update, but I'm using windows 8.1 and not sure if I'll have the problem haha.
-
and after you got the table, you can use a loop to get the first 5 elements without writing 5 sentences. After that you should just select your own one.
-
Use the mysql select function to retrieve the data.
-
Are you sure that you're trying to receive the money of the right person? I've had trouble with this too, but that was because my money was... oh well... 0. ^^" ( without tonumber, this will also give you an error. ) You should try to see what 'source' is: outputDebugString ( getPlayerName ( source ) )
-
I dont get it, can you give example? By when you click "Play" it make serial and account on it, then spawn the player? Whenever a player installs MTA, a serial will be created for him. This serial is bound to the installation of MTA, whenever a player is going to press 'play' on your server, see if there is an account that's using that serial. If so, log him in and spawn him. If there isn't an account, create a new account for the player and log him in after that.
-
You'll be using the dbExec and dbQuery whenever you want to do something with your database. As far as I used them, I used the dbQuery for select queries and the dbExec for updates, inserts and delete queries.
-
setPedControlState is a client-only function, beside that you didn't give the ped a weapon. You just set his slot to melee attacks.
-
You can use getPedAnimation and see if the player is doing an animation.
-
I don't think you can increase the vehicle seats... You can make a dirty workaround to check if the total attached elements is less than your max passengers and attach the player in the vehicle or set it's camera to face to the driver and attach the player to it on a very high position or so...