Erhabi
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by Erhabi
-
WoooooW thank you very very much now is working
-
i read it and i know use it but if i use it in editBox1 it does not work please give me exp for editBox1 = guiCreateEdit to give another player
-
function gui ( ) window = guiCreateWindow ( 0.4, 0.3, 0.3, 0.4, "Welcome "..getPlayerName ( getLocalPlayer () ), true ) mymoney = guiCreateLabel ( 0.25, 0.10, 0.8, 0.12, "Your money: $"..getPlayerMoney ( source ), true, window ) guiCreateLabel ( 0.1, 0.25, 0.8, 0.12, "Player:", true, window ) guiCreateLabel ( 0.1, 0.44, 0.8, 0.12, "Money:", true, window ) editBox1 = guiCreateEdit( 0.3, 0.26, 0.7, 0.12, "", true, window ) editBox2 = guiCreateEdit( 0.3, 0.42, 0.7, 0.12, "", true, window ) give = guiCreateButton ( 0.1, 0.58, 0.8, 0.12, "Give!", true, window ) addEventHandler ( "onClientGUIClick", give, give1, false ) end addEventHandler ( "onClientResourceStart", getRootElement(), gui ) -------------- function show_gui ( ) guiSetText ( mymoney, "Your money: $"..getPlayerMoney ( source ) ) guiSetText ( window, "Welcome "..getPlayerName ( getLocalPlayer () ) ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor ( false ) else guiSetVisible ( window, true ) showCursor ( true ) end end function close_gui ( ) showCursor ( false ) guiSetVisible ( window, false ) end function Keys ( ) bindKey ( "F7", "down", show_gui ) end addEventHandler( "onClientResourceStart", getRootElement( ), Keys ) addEventHandler ( "onClientResourceStart", getRootElement(), close_gui ) --------------- function give1 ( ) eee = guiGetText ( editBox1 ) player1 = getPlayerFromName ( eee ) ddd = guiGetText ( editBox2 ) end --------------- my problem how can i get player name from editBox1 and give him money i can't give him money in client.lua because i can't set player in givePlayerMoney if it in client.lua
-
hi all I have one question How do I give money to another player using givePlayerMoney code in client.lua??? In other words, how can i use givePlayerMoney in client.lua to give another player?
-
lol yea i don't know what value what is value? what do i replace with it? sorry my english is bad
-
please give me example for it
-
that's not work
-
thxxx all my scripting is work now but i have win one Question how can i show the money in scoreboard ???
-
hi all i have problem in my new scripting The problem starts when I want to send my money to another player. this is my scripting and this is the message for the problem i need help
-
plzzz i need help the scrioting does not work i created a file.lua in race folder function win ( rank, finishtime ) if ( rank == 1 ) then givePlayerMoney ( source, 100 ) end end addEvent ( "onPlayerFinish", true ) addEventHandler( "onPlayerFinish", getRootElement(), win ) but that not work
-
that's not work?!!!!
-
Can you give me an example?
-
hi all I made the scripting for race mode But I have a problem I want to know how to make the player if he wins give him 100 I'm sorry for my bad English
-
Well, what do I do now then? I want a solution to this problem
-
Do you mean that it closed in version 1.0.2 only?
-
hi all I have a problem, I use the external server I uploaded the resources files to external server This link files http://erhabi.1free.ws/resources ---- Then I modified the mtaserver.conf file This is a picture of the amendments ---- But the problem is that when I want access to the server I get a message This is a picture of the message What is the solution?? i'm sorry, because my English bad