IIIIlllllIII Posted September 20, 2011 Posted September 20, 2011 hi i make shop panel and i need ur help guys i make the shop for buy weapons and i have a small problem with it when the player dont have money and press button to buy weapon the msg of the chat (you dont have money to buy wepaon) all players see this msg this my problem i want this msg only on the player when he press button to buy weapon how i fix it oh this the code server said addEvent("gived",true) addEventHandler("gived",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) giveWeapon ( source , 24 ) setPedWeaponSlot(source, getSlotFromWeapon(24)) local r, g, b = getPlayerNametagColor(source) outputChatBox ( "#FFFC17" .. getPlayerName ( source ) .. " has bought deagle $150 ..." , getRootElement(), r, g, b, true ) else outputChatBox("You Dont Have Money to buy weapon") end end the problem with the outputBox when the player press the Button he spam on the chat and all players see the msg ( You Dont Have Money to buy weapon ) i want only the player see the msg of him self i hope u understand me guys plz fix it http://mojrm511.x10.mx msn: [email protected] my server ip: 176.9.40.71:22779 -------------------------------------- 2012 updated--------
JR10 Posted September 20, 2011 Posted September 20, 2011 Here comes my point, you don't even know how to outputChatBox to one player, that's what copy+paste every code does. outputChatBox("You Dont Have Money to buy weapon",source) Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
IIIIlllllIII Posted September 20, 2011 Author Posted September 20, 2011 Here comes my point, you don't even know how to outputChatBox to one player, that's what copy+paste every code does. outputChatBox("You Dont Have Money to buy weapon",source) thank you JR10 for the help yes i copy and past but i add more codes http://mojrm511.x10.mx msn: [email protected] my server ip: 176.9.40.71:22779 -------------------------------------- 2012 updated--------
Cadu12 Posted September 20, 2011 Posted September 20, 2011 1º Learn english 2º Learn Lua scripting 3º If doesnt work, then it post on this forum. 4º ? Ingame nick: Cadu12
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