Perfect Posted December 23, 2011 Share Posted December 23, 2011 1.) how to make a button like f9 ? 2.) what is a different between client side and server side ? 3.) how to disallowed Hax Example :- #FFFFFFhi Hello world ? 4.) We can make a skin , vehicle or weapons in mta if yes then how ? 5.) how to make a country means if you press tab then got players country and map ? 6.) how to make a suddenly brake if you press x then your vehicle suddenly stop ? 7.) how to set player skin on in spawn and how to set spawn point ? 8.) how to make spawn kill disable ? That's are noob questions pls not tell I not have brain i have brain but i am new in mta and i don't know some functions i know wiki but i can't find that functions and i also know my english too bad it is hard to understand but pls understand and try to help me Link to comment
GanJaRuleZ Posted December 23, 2011 Share Posted December 23, 2011 1) What? 2) Client side is the script that the player will download and Server side is the script that will be just in the server's folder 3) You have to script yourself 4) Yes you can , by editing the .dff and the .txd '5) Country Tab , in the public resources 6) function onresourceStart () bindKey ("F7", "down", suddenlyStop) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function suddenlyStop(theplayer) local vehicle = getPedOccupiedVehicle(thePlayer) if (not vehicle) then return end local speedx, speedy, speedz = getElementVelocity ( vehicle ) setElementVelocity ( vehicle , 0 , 0 , 0 ) end end Im new too in script , so i dont know if this works I hope i helped you ... Link to comment
CapY Posted December 23, 2011 Share Posted December 23, 2011 7 ) Modify play resource for spawn, and for skin, use account data. 8 ) Use onPlayerCommand and cancel "kill" string event. Link to comment
GanJaRuleZ Posted December 23, 2011 Share Posted December 23, 2011 @Perfect .. You must know that from now , you must try to script , we won't make all the scripts at command Link to comment
Perfect Posted December 24, 2011 Author Share Posted December 24, 2011 GanJaRuleZ Said function onresourceStart () bindKey ("F7", "down", suddenlyStop) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function suddenlyStop(theplayer) local vehicle = getPedOccupiedVehicle(thePlayer) if (not vehicle) then return end local speedx, speedy, speedz = getElementVelocity ( vehicle ) setElementVelocity ( vehicle , 0 , 0 , 0 ) end end Where i put that codes ? and now also i don't know what is Client side and server side means how to download scripts from Client ? Link to comment
CapY Posted December 24, 2011 Share Posted December 24, 2011 1)You put that codes in your "resources" folder. 2)Downloading client scripts is automatic, depends on which handler you assign on them. Link to comment
Perfect Posted December 24, 2011 Author Share Posted December 24, 2011 2)Downloading client scripts is automatic, depends on which handler you assign on them. Sorry i can't Understand that because my English is too bad . can you tell that in easy english pls and how to make a script i mean i make script but script is not working i got Error see this ERROR: Couldn't parse meta file for resource 'WelcomeMassage' How to fixed That ? Link to comment
CapY Posted December 24, 2011 Share Posted December 24, 2011 Because you didn't created a meta.xml in your script directory. Why just not take a look on this : https://wiki.multitheftauto.com/wiki/Server_Manual and this, if you want to : https://wiki.multitheftauto.com/wiki/Meta.xml Link to comment
Perfect Posted December 25, 2011 Author Share Posted December 25, 2011 Thnx friends for help me . i am very happy becouse you help me Special Thnx to CapY but pls tell me how to make a country tab with flag ? EDIT :- and pls sent me meta for welcome massage Link to comment
TAPL Posted December 25, 2011 Share Posted December 25, 2011 take a look there https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Cli ... _functions https://community.multitheftauto.com https://community.multitheftauto.com/index.php?p= ... ls&id=2920 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now