Luke_Ferrara
Members-
Posts
88 -
Joined
-
Last visited
Everything posted by Luke_Ferrara
-
function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getElementModel ( source ) setAccountData ( playeraccount, "skin", playerskin ) end end function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin" ) if ( playerskin ) then setPedSkin ( source, playerskin ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) This should work but I have no idea why it is not, I got this code from another post however that was to save money so I figured if i changed what the code looks for and saves it will save the players skin however it doesn't, it sets the skin to 0 and doesn't update when it is changed
-
what would be an updated version of this part of the script local pRoot = xmlLoadFile ( NPC_PATH, RES ); when i try to run the script it says xmlLoadFile may be using an outdated syntax please check and update but I have searched wiki and have no idea what could be an updated version of that part can someone please help me out
-
yeah I would also like to know how it can be applied with other properties such as pos, skin ect. and how to save even when server crashes so when it goes back up it will still save money, skin, ect.
-
well I want it to only happen when the player joins after registering and when they log back in they use the skin they chose back when they first registered and can NOT go to skin selector. I want in like ZIP by the mirror so players can rotate the character 360 degress if they want. Kind of like how the Valhalla skin selector is set up only minor changes if you know what I mean. Complete with a GUI menu. Also in addition can you explain how to save skins and positions are they INT?
-
Hi I am looking to create a skin selection option when a new player registers on my server and be able to select a variety of civilian skins. How ever I need someone to help kick me off because I have been reading all through wiki and I need a basic code just to get me started. Can anyone help me out??
-
for some reason when i try to start this it reads couldn't find file and keeps doing that even though the path in the meta is correct it is not finding the files.... has any1 else had this problem?
-
in my server I set up two 24/7 entrances the problem is if player A goes into 24/7 and player B goes into the other they can meet in the interior. My question is how do i set each place to a unique interior
-
yup that did it thanks
-
nope still the same i don't think its the camera im not 100% though cause you don't even see your character.
-
i wrote this in 5 minutes and after login is clicked the player is suspended in air and doesn't come back to the ground? but the lable (like when you go into different areas says internation airport, perish square ect.) changes without moving heres the script: Server Side function joinHandler(Username, Password) local x,y,z x = 1643.4725 y = -2238.2766 z = 13.4952 if (client) then spawnPlayer(client, x, y, z) fadeCamera(client, true) outputChatBox("Scripted By The GTRP Scripting Team", client) outputChatBox("Animation List (/animlist)", client) outputChatBox("Rules And Help Press F1)", client) end end addEvent("SubmitLogin", true) addEventHandler("SubmitLogin", getRootElement(), joinHandler) Client Side function CreateLoginWindow() local X = 252 local Y = 230 local Width = 538 local Height = 368 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", false) X = 0.277 Y = 0.3071 Width = 0.0725 Height = 0.0489 Name_Tag = guiCreateLabel(X, Y, Width, Height, "Name:", true, wdwLogin) guiLabelSetColor(Name_Tag,255,255,255) guiLabelSetVerticalAlign(Name_Tag,"top") guiLabelSetHorizontalAlign(Name_Tag,"left",false) X = 0.2416 Y = 0.413 Width = 0.1022 Password_Tag = guiCreateLabel(X, Y, Width, Height, "Password:", true, wdwLogin) guiLabelSetColor(Name_Tag,255,255,255) guiLabelSetVerticalAlign(Password_Tag,"top") guiLabelSetHorizontalAlign(Password_Tag,"left",false) X = 0.3587 Y = 0.4076 Width = 0.2751 Height = 0.0571 Password_input = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.3043 Name_input = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(Name_input, 16) guiEditSetMaxLength(Password_input, 16) guiEditSetMasked(Password_input,true) X = 0.0725 Y = 0.8098 Width = 0.2621 Height = 0.1658 btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin) guiSetFont(btnLogin,"sa-header") guiSetVisible(wdwLogin, false) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) X = 0.6004 Y = 0.8098 Width = 0.3253 Height = 0.1658 btnRegister = guiCreateButton(X, Y, Width, Height, "Register", true, wdwLogin) guiSetFont(btnRegister,"sa-header") guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () CreateLoginWindow() outputChatBox("Welcome to Grand Theft RolePlay, Please Log In. ") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) end showCursor(true) guiSetInputEnabled(true) end ) function clientSubmitLogin(button) if button == "left" then triggerServerEvent("SubmitLogin", getRootElement(), guiGetText(Name_input), guiGetText(Password_input)) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end it should work it calls the window on start up and when the lgnbtn is clicked it calls the joinhandler which spawns the character which it does not....
-
wrong if you open the server to the public and when you have a steady amount you require them to register and the hype of the game will want them to register and the feeling that not just any one can join and DM and leave and not care. And RPG is what makes mta and sa-mp worth playing other game modes get old like racing and how many times can i kill you
-
Nothing new in the question, (seriously, there are tons of this kind of topic popping up all the time in here,) nothing new in the answers people provide: No. Learn scripting for yourself. you must be a little slow..... so ill break it down for you i do know how to script i have much experience in both sa-mp and mta i want to form a team to speed up the process of scripting rather than do a whole project with two people.
-
As you know MTA doesn't have a lot of good quality RPGs other than the valhalla server but even that isn't all that great. I am a script writer currently looking for help to script the next huge RPG server in MTA. I need people who are EXPERIENCED enough to keep up with the team of script writers so we can launch this server soon. Its a gang/mafia based RPG with more than just killing drugs and territories. You can become anything you want which is why we require more script writers to aid us in helping us script the endless possibilities of the player. This will be a private server only availible to those who register on out website and aquire the password to the server so in good time YOU as the script writer will get paid (how much has yet to be established). If you interested send me a PM or reply to the post. Thank You
