
ThePhill97
Members-
Posts
33 -
Joined
-
Last visited
Everything posted by ThePhill97
-
My brain clicked. Yes, I understand now. Thanks.
-
...Makes no sense Don't even begin scripting or programming in general if you don't understand that - you need to have motivation and understanding. Arrays are important. Dont get me wrong, Im not a noob into scripting. Some would call it "advanced-medium" I know PAWN (SA-MP) C++ C# Visual Basic (vb6+) Batch Visual basic scripts Some java See, I'm not a nub. It's just my learning style isn't all reading. I need examples that I can kinda-relate to and in simple forms.
-
What do you mean 'where'? Location? Script?
-
I can see how they go together, however I have in general a few mixed cars that I want only the team to be able to use, but with the onVehicleStartEnter and getPlayerTeam it only allows certain car ID's
-
I have vehicles scripted in, however I want to make the cars only enterable by those in the team
-
Yeah Was a mistake I missed it out.
-
I have a team "Mafia" and I want to know how to make ONLY the members of this team enter, but anyone else can enter passenger? Is this possible
-
Now the player cannot register. Nothing happens.
-
This one?: function onClickBtnRegister(button,state) --При нажатии на кнопку Register and Cofirm if(button == "left" and state == "up") then if (source == btn_reg_tab_register) then username = guiGetText(edit_account_name) password = guiGetText(edit__reg_tab_password) passwordConfirm = guiGetText(edit__reg_tab_Repassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) end end end
-
function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#FF0000* #00FF00You have sucessfuly registered! [username: #FFFFFF" .. username .. " #00FF00| Password: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) outputChatBox("You travelled to 'Philatopia' from *BLANK*.", source) outputChatBox("Your left-over cash = $500.", source) givePlayerMoney ( thePlayer, 500 ) else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Error ocurred. Choose a different username/password.") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","An account with this username already exists") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Passwords do not match") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please confirm your password") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a password") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a username you would like to register") end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer) The script itself works, just not money giving?
-
I know the simplicity of this function, but it just doesn't work. givePlayerMoney ( thePlayer, amount ) local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#FF0000* #00FF00You have sucessfuly registered! [username: #FFFFFF" .. username .. " #00FF00| Password: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) outputChatBox("You travelled to 'Philatopia' from *BLANK*.", source) outputChatBox("Your left-over cash = $500.", source) givePlayerMoney ( thePlayer, 500 ) What is the problem? givePlayerMoney is the correct thing, give it to the player, $500... [NOTE] It's abit scrunched up, but I have the correct dents everywhere on my file.
-
No, its in the gamemode I have fresh-scripted
-
When the player dies he is forced to reconnect to play again, how can I make the player respawn?
-
Thanks for the help -facepalm. I managed to do it myself.
-
And all I want, is an example so I can analyse it and use it in future.
-
I was looking at those, I still don't understand. Please, just show me show to bind F1 to show the text?
-
You make as much sense as my 4 year old brother does, and so far he's winning this battle against you. You do exactly what you did to get the code, copy it into your client side script because all drawing engine functions are client side. (and if you still don't know what that means, then go to The Wiki and get learning.) If you want to make it in this forum, you had better read and learn. I don't just answer one question, i answer a couple hundred more you will post here in the next week just by telling you to research. Well, thank-you. We got somewhere. I've implemented the text, thank you for your help. Even if we did half-argue about it. Is there also a way that when for EG: I press F1 I can make this appear?
-
Is not what you said in the post, so i had assumed you stole. You said So it sounded more like you just copied it. You fool no one unless english isn't your first language. Research what onClientResourceStart does, you will see when it fires and why it is not needed here Why does nobody just tell me how to put it in game also: You fool no one unless english isn't your first language. - English clearly isn't your main language.
-
As I said in my post above, I used viewtopic.php?f=108&t=22831 To make it IG
-
I used viewtopic.php?f=108&t=22831 What do you mean? How can I see it in-game?
-
Inserting a GUI? I put this addEventHandler("onClientResourceStart", resourceRoot, function() end ) addEventHandler("onClientRender", root, function() dxDrawText("DEADLYDUCKZ FREEROAM SERVER", 19, 544, 739, 684, tocolor(204, 45, 24, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end ) Into my script, is that what I do? How do I implement it?