acp___(PL) Posted September 13, 2009 Share Posted September 13, 2009 "Enter/Exit - Kill player" doesnt work Link to comment
0 robhol Posted September 13, 2009 Share Posted September 13, 2009 "Enter/Exit - Kill player" doesnt work Assuming you have created that event, you need to add true as the second argument in the addEvent call. Link to comment
0 acp___(PL) Posted September 13, 2009 Author Share Posted September 13, 2009 I'm talking about "race" resources, I don't remeber that I were editing it ... Link to comment
0 Scarface Posted September 14, 2009 Share Posted September 14, 2009 How about reporting these bugs of yours on the bug tracker? Developers don't visit the forums much. Link to comment
0 acp___(PL) Posted September 14, 2009 Author Share Posted September 14, 2009 I prefer to make sure it's not my fault ... Link to comment
0 acp___(PL) Posted September 15, 2009 Author Share Posted September 15, 2009 thought that after uploading the new files (mainly the resource RACE) function will work I was wrong ... race.zip/race_client.lua --------------------------------------------------------------------------- -- -- Commands and binds -- -- -- --------------------------------------------------------------------------- function kill() if Spectate.active then if Spectate.savePos then triggerServerEvent('onClientRequestSpectate', g_Me, false ) end else triggerServerEvent('onRequestKillPlayer', g_Me) end end addCommandHandler('kill',kill) addCommandHandler('Commit suicide',kill) bindKey ( next(getBoundKeys"enter_exit"), "down", "Commit suicide" ) --[[bindKey('enter_exit', 'down', function() if Spectate.active then if Spectate.savePos then triggerServerEvent('onClientRequestSpectate', g_Me, false ) end else triggerServerEvent('onRequestKillPlayer', g_Me) end end )]] --[[bindKey('b', 'down', function() if not g_PlayerInfo.testing and not g_PlayerInfo.admin then return end if Spectate.active then if Spectate.savePos then triggerServerEvent('onClientRequestSpectate', g_Me, false ) end else triggerServerEvent('onClientRequestSpectate', g_Me, true ) end end )]] function spectate() if not g_PlayerInfo.testing and not g_PlayerInfo.admin then return end if Spectate.active then if Spectate.savePos then triggerServerEvent('onClientRequestSpectate', g_Me, false ) end else triggerServerEvent('onClientRequestSpectate', g_Me, true ) end end addCommandHandler('spectate',spectate) addCommandHandler('Toggle spectator',spectate) bindKey("b","down","Toggle spectator") function setPipeDebug(bOn) g_bPipeDebug = bOn outputConsole( 'bPipeDebug set to ' .. tostring(g_bPipeDebug) ) end Server logs: [22:06:56] ERROR: Client triggered serverside event onRequestKillPlayer, but event is not marked as remotly triggerable Edit: 2009.09.16 22:40 "Enter/Exit - Kill player" doesnt work Assuming you have created that event, you need to add true as the second argument in the addEvent call. line 16 my previous post triggerServerEvent('onRequestKillPlayer', g_Me, true) nothing changes Link to comment
0 acp___(PL) Posted September 20, 2009 Author Share Posted September 20, 2009 Still do not know why it does not work ... cheated by adding a script https://community.multitheftauto.com/index.html?p=resources&s=details&id=18 Link to comment
Question
acp___(PL)
"Enter/Exit - Kill player" doesnt work
Link to comment
6 answers to this question
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