lubiekeppa Posted March 23, 2013 Share Posted March 23, 2013 Hello i search script that will do that when we get injured, we can log off after 10 seconds Link to comment
EstrategiaGTA Posted March 23, 2013 Share Posted March 23, 2013 We'll not give you a script, we give support & help to Scripters if his scripts are wrong... If you search that, go HERE. Link to comment
iPrestege Posted March 23, 2013 Share Posted March 23, 2013 onPlayerLogout cancelEvent Link to comment
lubiekeppa Posted March 23, 2013 Author Share Posted March 23, 2013 The problem is that I do not understand what a colleague wrote above. I have a script but it seems to me that it is not complete.The script in Polish antyRelogWindow = guiCreateWindow( 0.35, 0.03, 0.30, 0.10, "Powiadomienie", true ) guiWindowSetMovable(antyRelogWindow, false) guiWindowSetSizable(antyRelogWindow, false) text1AR = guiCreateLabel(0.08, 0.29, 0.87, 0.17, "UWAGA! Doznałeś obrażeń, przez co nie możesz opuścić serwera, dopóki to", true, antyRelogWindow) text2AR = guiCreateLabel(0.07, 0.57, 0.93, 0.20, "okienko nie zniknie! W przeciwnym razie, twoja postać zostanie uśmiercona", true, antyRelogWindow) guiSetVisible (antyRelogWindow,false) function wlaczOkienko() guiSetVisible (antyRelogWindow,true) end addEvent("wlaczInfo",true) addEventHandler ("wlaczInfo", getRootElement(), wlaczOkienko) function wylaczOkienko() guiSetVisible (antyRelogWindow,false) end addEvent("wylaczInfo",true) addEventHandler ("wylaczInfo", getRootElement(), wylaczOkienko) Link to comment
Castillo Posted March 23, 2013 Share Posted March 23, 2013 To cancel logout, use the function and event posted above. Link to comment
lubiekeppa Posted March 23, 2013 Author Share Posted March 23, 2013 I'll try but I doubt that happened. I was grateful if someone did this to me Link to comment
PaiN^ Posted March 23, 2013 Share Posted March 23, 2013 Try to make it -_-" And if you couldn't, Post it here and we'll help ^^ Link to comment
lubiekeppa Posted March 23, 2013 Author Share Posted March 23, 2013 Unfortunately it did not work out. Was to be done by someone who is for me? Link to comment
xXMADEXx Posted March 24, 2013 Share Posted March 24, 2013 You can try this, but idk if it works. addEventHandler("onPlayerDamage",root, function () p = source timer = setTimer( function () addEventHandler("onPlayerLogout",p, function () outputChatBox("You cannot logout for another "..getTimerDetails(timer) / 1000 .." seconds.",p,255,0,0) cancelEvent() end ) end, 1000, 1 ) end ) Link to comment
Castillo Posted March 24, 2013 Share Posted March 24, 2013 That'll create a single timer variable, he should use a table, and no need to create the function every time. Link to comment
lubiekeppa Posted March 29, 2013 Author Share Posted March 29, 2013 You can try this, but idk if it works. LINE NUMBER ON/OFF | EXPAND/CONTRACT | SELECT ALL addEventHandler("onPlayerDamage",root, function () p = source timer = setTimer( function () addEventHandler("onPlayerLogout",p, function () outputChatBox("You cannot logout for another "..getTimerDetails(timer) / 1000 .." seconds.",p,255,0,0) cancelEvent() end ) end, 1000, 1 ) end ) Help . It does not work. Someone will do it for me? Very you please. Link to comment
DNL291 Posted March 29, 2013 Share Posted March 29, 2013 No one will do it for you. Just try to do it and tell us what the problem. 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