Jump to content

Mefisto_PL

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by Mefisto_PL

  1. Hi, I have a problem.. this function is bugged idk why.. I want to make that sound could be played one time on 15 seconds, but text will created and turn off my message from the chat when I used the command. ( for example: Mefisto_PL: !bitch ) Can you help me plz? SERVER-Side local LastUsedTime = 0 function scriptStart ( ) outputChatBox ( "[sERVER] Sounds_Commands by Mefisto_PL activated ! Type !help for commands !", source, 255, 255, 255, true ) end addEventHandler ( "onPlayerJoin", getRootElement(), scriptStart ) function helpCommand ( message, type ) if ( string.find ( message,"!help" ) ) and not ( string.find ( message," !help" ) ) then outputChatBox ( "Sounds commands: !awful, !babies, !bitch, !laugh, !goodmorning, !noob, !noobwins, !suck, !2suck, !surprise, !wth, !zag", source ) end end addEventHandler ( "onPlayerChat", getRootElement(), helpCommand ) function soundCommands ( message, type ) if getTickCount()-LastUsedTime < 15000 then --outputChatBox ( "[sERVER] Emm.. You can't do that now.. Wait 15 seconds for it.", source ) return end LastUsedTime = getTickCount() local source_name = getPlayerName( source ):gsub("#%x%x%x%x%x%x", "") if ( string.find ( message,"!bitch" ) ) and not ( string.find ( message," !bitch" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: You're son of a bitch !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/bitch.mp3" ) elseif ( string.find ( message,"!suck" ) ) and not ( string.find ( message," !suck" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: You suck..", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/suck.mp3" ) elseif ( string.find ( message,"!2suck" ) ) and not ( string.find ( message," !2suck" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Hey ! You suck !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/suck(1).mp3" ) elseif ( string.find ( message,"!babies" ) ) and not ( string.find ( message," !babies" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: All of you are babies !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/babies.mp3" ) elseif ( string.find ( message,"!zag" ) ) and not ( string.find ( message," !zag" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Zag Zag !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/zag.mp3" ) elseif ( string.find ( message,"!laugh" ) ) and not ( string.find ( message," !laugh" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Muahahahahaha !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/laugh.mp3" ) elseif ( string.find ( message,"!noobwins" ) ) and not ( string.find ( message," !noobwins" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Noob wins..", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/noobwins.mp3" ) elseif ( string.find ( message,"!noob" ) ) and not ( string.find ( message," !laugh" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: You're noob !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/noob.mp3" ) elseif ( string.find ( message,"!surprise" ) ) and not ( string.find ( message," !surprise" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Surprise !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/surprise.mp3" ) elseif ( string.find ( message,"!awful" ) ) and not ( string.find ( message," !awful" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Ahahaha.. That's awful !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/awful.mp3" ) elseif ( string.find ( message,"!goodmorning" ) ) and not ( string.find ( message," !goodmorning" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: Good morning !", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/goodmorning.mp3" ) elseif ( string.find ( message,"!wth" ) ) and not ( string.find ( message," !wth" ) ) then outputChatBox ( "*#FF9900" .. source_name .. "#FF4500: What the hell was that?!", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "startSound", getRootElement(), "sounds/hell.mp3" ) end cancelEvent() end addEventHandler ( "onPlayerChat", getRootElement(), soundCommands )
  2. Drawing dxWindow and shader effect.
  3. Hello.. I have a small question. How I can set for this, effect which simulate drawing it? function openPanel( cmd ) if ( display == true ) then removeEventHandler( "onClientPreRender", root, createBlurShader ) blurShader, blurTec = nil display = false else blurShader, blurTec = dxCreateShader( "shaders/BlurShader.fx" ) addEventHandler( "onClientPreRender", root, createBlurShader ) display = true end end addCommandHandler( "panel", openPanel ) function createBlurShader() if ( blurShader ) then dxUpdateScreenSource( myScreenSource ) dxSetShaderValue( blurShader, "ScreenSource", myScreenSource ); dxSetShaderValue( blurShader, "BlurStrength", blurStrength ); dxSetShaderValue( blurShader, "UVSize", sx, sy ); dxDrawImage( 0, 0, sx, sy, blurShader ) dxDrawImage( 0, 0, sx, sy, "images/blank.png", 0, 0, 0, tocolor( 0, 0, 0, 150 ), false ) end end
  4. Już mu to pisałem + użyłeś eventu server-side i client-side w jednym.
  5. I don't send it for steal, just for look how it could be created.
  6. viewtopic.php?f=91&t=56407&p=545199&hilit=fuel#p545199 - Look this
  7. Mefisto_PL

    Firefighter

    But it wasn't mistake It was fail in copy and paste
  8. setCameraMatrix + getTickCount
  9. And you can set another title of the topic next time, "I need help" it's not enough.
  10. Mefisto_PL

    Firefighter

    I know. It's stupid .
  11. Mefisto_PL

    Firefighter

    Oh god.. I was sending this link to my friend, sorry. Choke and WeaponFire it's two another things..
  12. Always night you can set locked time in map settings ( map editor ).
  13. Mefisto_PL

    Firefighter

    Maybe this event?
  14. Hmm.. It was not this effect I was enjoying on
  15. So.. They can give us rights to do what we want, but only for trusted peoples that we know they don't steal anything.. but I don't think that someone want to steal this scripts for doing copy MTA Lobby. Trusted peoples = I mean for example Solidsnake14 aka Castillo ( Yes I remember you, I was playing with on your server and we was trolling players , I suggested you doing Computer System , my nick was: Ballasbuster ), and Mr.Pres[T]ege ( you don't look as a thief ) etc. MTA Scripters can do something really good without MTA Developers, they should spend time on fix bugs and other stuff
  16. Hmm.. "it would need a very powerful host" - I don't think so. Players could be hidden when they are away from us and they shouldn't be showed all.. If 325 players turn on MTA then they're spawning and it could be laggy for someone. So here is next proposition creating a friends list. They'll be showed all time ( if they aren't stay away ). In one places could be for example 100 players showed ( because in another places they should not be showed ) of course if places will be big.. Smaller place = smaller number of people showed there.
  17. If it will be accepted, I'll send more information about that project.
  18. I think actual menu in game is good. But what about change it to a lobby server? When player turn on the game, he will spawn in a MTA Lobby Server. It could be looks like PlayStation Home ( click for example picture ) and there create some places (not on GTA Standard Map) where players could do everything they want if on any servers is something that we wouldn't like. Create markers on some places for "Server browsing", "options" etc. But when we press "Esc" button, we will see standard Menu. That could be server and menu in one . Making a mini-games and other stuff and it will be awesome ! What do you think about it? Please write your opinions
  19. Nie zauważyłem , ale dziękuję za uwagę. Będę uważał Koniec OffTopu.
  20. Checkpointy ustawiasz tak jak wcześniej.. Nie napisze Ci, że to jest drugie okrążenie, ale gracze jadą tyle razy ile checkpointów tam nawalisz
  21. Popytaj, bo są osoby które mają z nim kontakt.
  22. addCommandHandler("dajauto", createVehicleForPlayer) Dałeś dwa apostrofy zamiast cudzysłowia(? ;o).
  23. Nie chodzi mi o zamykanie serwerów.. ale nieważne, to nie jest temat do takich rozmów, w każdym razie powodzenia i kawał dobrej roboty, szczęścia w karierze.
  24. Ehh.. wytłumaczę to tak.. Nowy serwer "Newbie": zaangażowanie, chęci, proste skrypty/ściągane: 15/32 graczy Nowy serwer "Professional": Zaangażowane, chęci, zaawansowane autorskie skrypty: 115/160 graczy Miesiąc później Newbie: większe zaangażowanie , większe chęci, nowe skrypty: 5/32 graczy Professional: wszystko to samo tylko nowe skrypty: 145/160 graczy Nowe serwery już nie mają szans, każdy kto będzie chciał mieć własny serwer padnie szybko. Dobrze dla graczy o dużych ambicjach, brak konkurencji.. ale tym samym ogranicza się osoby, które mogą mieć przeogromne ambicje, a nie mają doświadczenia i poddają się w nauce lua, bo wiedzą, że nie dorównają takiemu serwerowi.. to zarazem przykre dla takich graczy i dobre dla tych umiejętnych.. Gracze niedoświadczeni robią to z pasją.. a niestety większość doświadczonych.. na początku dla pasji.. potem dla kasy.. Przydałaby się jakaś grupa wsparcia dla początkujących nie sądzisz? Bo wszyscy wielcy skrypterzy ( a bynajmniej większość ) nie chce pomagać nowym projektom.. Wszyscy idą tylko dla pewniaka, a tamci projekty stare zostają tylko w śmietniku.. Eh.. W każdym razie.. powodzenia
×
×
  • Create New...