villr Posted September 8, 2010 Author Share Posted September 8, 2010 What are you trying to say to me or what do you mean? And so you know the new code dont work Link to comment
dzek (varez) Posted September 8, 2010 Share Posted September 8, 2010 CLICK ME * CLICK ME * CLICK ME I cannot transfer this knowledge into your brain. READ IT. At least once. I'm begging you.. Link to comment
villr Posted September 8, 2010 Author Share Posted September 8, 2010 Yea now i have read it 2 times U want me to do what? Check if it any wrong or what? Link to comment
dzek (varez) Posted September 8, 2010 Share Posted September 8, 2010 You red it, and still don't know what to do? So you didnt read it, or didnt do it carefully. ... (i just removed part of my post, becouse i realized something) I've already gave you example of debugging, and you didnt say a word about it. here: viewtopic.php?f=91&t=28956&start=15#p319855 Link to comment
villr Posted September 10, 2010 Author Share Posted September 10, 2010 ohh u mean debugline that put out when player die? I will check if it come any in window about it and if not are coming is it not working or what? I will try and se in my "private"server Link to comment
villr Posted September 10, 2010 Author Share Posted September 10, 2010 yea code is coming and i tryed on an "online"server witch people can enter and when a player die that message come "player have died"And no error messages but it show up for all still beacuse i have not edit the script, only now tested it Link to comment
dzek (varez) Posted September 10, 2010 Share Posted September 10, 2010 well, its not my message.. tell me EXACTLY letter-by-letter, what is it saying. Link to comment
villr Posted September 10, 2010 Author Share Posted September 10, 2010 but omg i will check im not writed full onlly a few thing I will check it later Link to comment
dzek (varez) Posted September 10, 2010 Share Posted September 10, 2010 you ommited most important thing in this message -.- i can do "omg", not you ^^ Link to comment
villr Posted September 11, 2010 Author Share Posted September 11, 2010 We have a working code now BUT when a player die it dont show up again but it dont show upp for all Here is the code addEventHandler( "onClientPedWasted", getLocalPlayer( ), function( ) if source == getLocalPlayer( ) then -- Wojak forgot about "then" here local name = getPlayerName(source) outputDebugString("player that died: "..name..", local player: "..getPlayerName(getLocalPlayer())) guiSetVisible (spawnmenugrid, true ) guiSetVisible(spawnmenumemo,true) showCursor ( true ) showPlayerHudComponent("radar",false) showChat(false) end end ) What is wrong now? Link to comment
dzek (varez) Posted September 11, 2010 Share Posted September 11, 2010 any messages in debug window? try to add more debug: if source == getLocalPlayer( ) then -- Wojak forgot about "then" here outputDebugString("ped died") local name = getPlayerName(source) -- rest of code Link to comment
villr Posted September 26, 2010 Author Share Posted September 26, 2010 no i dont get anything Link to comment
12p Posted September 27, 2010 Share Posted September 27, 2010 Maybe you forgot set this script as client-side... Did you? Link to comment
villr Posted September 30, 2010 Author Share Posted September 30, 2010 Maybe you forgot set this script as client-side... Did you? Nope it is client side Link to comment
villr Posted September 30, 2010 Author Share Posted September 30, 2010 Right now code is addEventHandler( "onClientPlayerWasted", getLocalPlayer( ), function( ) if source == getLocalPlayer( ) then -- Wojak forgot about "then" here local name = getPlayerName(source) outputDebugString("ped died") outputDebugString("player that died: "..name..", local player: "..getPlayerName(getLocalPlayer())) guiSetVisible (spawnmenugrid, true ) guiSetVisible(spawnmenumemo,true) showCursor ( true ) showPlayerHudComponent("radar",false) showChat(false) end end ) 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