eXo|Flobu
-
Posts
24 -
Joined
-
Last visited
Posts posted by eXo|Flobu
-
-
if you use the executeSQL functions it will be saved the data to the intern server database of mta (MTA San Andreas\server\mods\deathmatch\registry.db) automatically.
if you want to use an extern database you need a module like this https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL.
-
i play MTA in 1440*900 and it works fine
-
i dont know if the typestring of the markes are case sensitiv but this can be solve the problem
the first ones are correct but the others have capitals in it "cylinder" "Cylinder"
mfg flobu
-
-
it's really useful THX
-
this is a working modestarter.lua without executeCommandHandler
-
too small resolutions with ratio 1:1 have trouble with the white border too but they have a small filesize.
-
you need a function which gives all players of the server an amount of money
http://development.mtasa.com/index.php? ... layerMoney
givePlayerMoney ( player thePlayer, int amount )
for "player theplayer" you can use getRootElement() which means all players
for "int amount" you use your own amount as number
now you need the setTimer function
http://development.mtasa.com/index.php?title=SetTimer
setTimer ( function theFunction, int timeInterval, int timesToExecute, [ var arguments... ] )]
as "function theFunction" you might use givePlayerMoney
for "int timeInterval" you use the time between the function runs in milliseconds
as "int timesToExecute" you use 0 for unlimited runs
"[ var arguments... ]" are the arguments of the function you use
in this case you must use "player thePlayer" and "int amount"
i hope this helps you a bit
-
i us the window mod for gta:sa
its only another d3d9.dll
with this you can use alt+tab to tabbing to another programm like notepad++
-
i got this error sometimes
i try it many times and usually it works
-
the money must set when a player login not when he join
function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getClientAccount ( source ) -- check if the account is a guest account or not if not isGuestAccount( playeraccount ) then local playermoney = getPlayerMoney ( source ) local suc = setAccountData ( playeraccount, "money", playermoney ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) function onPlayerLogin ( ) -- when a player login, retrieve his money amount from his account data and set it local playeraccount = getClientAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "money" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end addEventHandler ( "onClientLogin", getRootElement ( ), onPlayerLogin )
-
Or you can make something that could help others a lot. Since not many are good enough to know how to calculate positions out of a position, rotation and distance, (like me... ^^) a resource/script to calculate these things would help quite some people quite much! So people can make their gamemodes a bit more professional and add a lot of their ideas of which they'd originally think that it wouldn't be possible.
Suggestion for a function:
float,float,float calculatePosition(float x, float y, float z, float rotx, float roty, float rotz, float distance)
Or something. Might not be hard, but it is to me! ^^
this work but i don't know how i would use the y rotation because this changes the z rotation. I don't know in which ways it changes.
the coordinates are not exactly correct because of rounding variables in lua script and its trigonometric functions
function calculatePosition3D(xOld, yOld, zOld, rx, ry, rz, distance) local xNow,yNow,zNow local a = math.cos(math.rad(rx))*distance xNow = xOld - math.sin(math.rad(rz))*a yNow = yOld + math.cos(math.rad(rz))*a zNow = zOld + math.sqrt( distance^2 - a^2 ) return xNow,yNow,zNow end
sry for my bad english
-
you can find it in the mtaserver.conf file which is located in
...\MTA San Andreas\server\mods\deathmatch
-
kickPlayer http://development.mtasa.com/index.php?title=BanPlayer and banPlayer http://development.mtasa.com/index.php?title=KickPlayer are server-only functions.
they don't work on a clientside script
you must use triggerServerEvent http://development.mtasa.com/index.php? ... erverEvent on the clientside script
and add this event with kickPlayer or banPlayer on the serverside
-
Works perfectly, altho its not adding 2 random numbers after the name that its changing to.
but if you really want two numbers you must use
math.random(1,9)..math.random(0,9)
instead of
math.random(1,99)
-
or you can use a window mod for the normal GTA:SA
-
may you can use this script
https://community.multitheftauto.com/index.php?p= ... ils&id=103
and for banks use this
https://community.multitheftauto.com/index.php?p= ... ails&id=54
-
may downloading this dll file and copy it in the gtasa main ordner help
-
yes
use
kickPlayer(bannedplayer[, source, reason])
banPlayer(bannedplayer[, source, reason])
but you can only use this if the resource is defined in acl.xml under admin group like your username
-
in the upper part of the acl.xml
do it like this then it works
-
this must be in the client lua to hide the chat and the healthbar
function hidePlayerHud() showChat ( false ) showPlayerHudComponent ( "health", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), hidePlayerHud)
mfg Flobu
-
as username you can use any name you want it doesnt matter, but if more connected at the same time they are not allowed to have the same usernames
password is correct
Host is the server ip
Port is the remoteport that you configure in your mtaconfig
-
(Orange) fan club!
in Gangs
Posted
Floborange is ready.