Wisam Posted June 19, 2014 Posted June 19, 2014 I made this script becasuse im still learning step by step and im starting from the smallst script so dont laugh at me So this should trigger the cinematic mod on/off and outputs a message on the chat.. i didn't test it yet because my mta is broken at the moment.. can you please tell me if it would work and the player will be able to turn on/off the cinematic mod with the messages appeared? with the same command function cinema (source) local showChat (false) local showHud (false) outputChatBox("Cinematic mod on!" 0,255,0) elseif outputChatBox("Cinematic mod off!" 255,0,0) end addCommandHandler("cin" cinema ) ☣ Plauge Arma II DayZ Mod Server ☣ Here's the link to stay tuned with the server progress and features: https://forum.mtasa.com/viewtopic.php?f=114&t=96675 Get Ready to play DayZ like you never did before
Max+ Posted June 19, 2014 Posted June 19, 2014 addEventHandler("onPlayerCommand",root, function (cmd) if cmd == "cinoff" then showChat (source, false ) -- hide the chat showPlayerHudComponent(source, "all", false) --- hide hud outputChatBox('Cinematic mod off !',source, 255, 0, 0 ) --- msg else if cmd == "cinon" then --- if command = cinoff then showChat (source, true ) -- show the chat showPlayerHudComponent(source, "all", true)--- show hud outputChatBox('Cinematic mod on !',source, 255, 0, 0 ) end end end ) It's ServerSide, - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
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