lubiekeppa Posted March 23, 2013 Posted March 23, 2013 Hello i search script that will do that when we get injured, we can log off after 10 seconds
EstrategiaGTA Posted March 23, 2013 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.
lubiekeppa Posted March 23, 2013 Author 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)
Castillo Posted March 23, 2013 Posted March 23, 2013 To cancel logout, use the function and event posted above. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lubiekeppa Posted March 23, 2013 Author Posted March 23, 2013 I'll try but I doubt that happened. I was grateful if someone did this to me
PaiN^ Posted March 23, 2013 Posted March 23, 2013 Try to make it -_-" And if you couldn't, Post it here and we'll help ^^ " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
lubiekeppa Posted March 23, 2013 Author Posted March 23, 2013 Unfortunately it did not work out. Was to be done by someone who is for me?
PaiN^ Posted March 23, 2013 Posted March 23, 2013 Post what you have done ! " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
xXMADEXx Posted March 24, 2013 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 ) The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted March 24, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lubiekeppa Posted March 29, 2013 Author 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.
DNL291 Posted March 29, 2013 Posted March 29, 2013 No one will do it for you. Just try to do it and tell us what the problem. Please do not PM me with scripting related question nor support, use the forums instead.
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