MisterQuestions Posted September 14, 2014 Posted September 14, 2014 Hi! im making a simple script... but doesnt work fine... function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) function IsLoged() setCametaTarget(source) end addEventHandler("onPlayerLogin", getRootElement(), IsLoged) When player joins, it set the camera to vinewood sing, but when logins i want to set to the player doesnt work, why? "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
#DRAGON!FIRE Posted September 14, 2014 Posted September 14, 2014 function IsLoged ( ) setCameraTarget ( source, source ) end addEventHandler( "onPlayerLogin", root, IsLoged ) To Contact Me at Skype : [email protected]
MisterQuestions Posted September 14, 2014 Author Posted September 14, 2014 Mmm doesnt work? (i used server-side) "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
#DRAGON!FIRE Posted September 14, 2014 Posted September 14, 2014 u sure ? u try login and any errors in debug To Contact Me at Skype : [email protected]
MisterQuestions Posted September 14, 2014 Author Posted September 14, 2014 Bad argument @addEventHandler [Expected element at argument 2 got nil] "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
#DRAGON!FIRE Posted September 14, 2014 Posted September 14, 2014 Bad argument @addEventHandler [Expected element at argument 2 got nil] post the full code after edit To Contact Me at Skype : [email protected]
MisterQuestions Posted September 14, 2014 Author Posted September 14, 2014 No sorry was my fault it works! thanks "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
#DRAGON!FIRE Posted September 14, 2014 Posted September 14, 2014 any time < > To Contact Me at Skype : [email protected]
MisterQuestions Posted September 14, 2014 Author Posted September 14, 2014 function ComandoNametag() setPlayerNametagShowing(source, true) else setPlayerNametagShowing(source, false) end addCommandHandler("show", ComandoNametag) And what is wrong here? "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
Perfect Posted September 14, 2014 Posted September 14, 2014 You can't use 'else' without 'if'. The correct syntax is:- If 2+2=5 then true else false end And yes every 'if' statement needs an 'end' at the end of the statement. More brief explanation:- viewtopic.php?f=148&t=75501 You can use IsPlayerNametagShowing Now try to solve it your self with the help of given information. Multi Theft Auto Player since middle of 2011. Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.
Anubhav Posted September 14, 2014 Posted September 14, 2014 [lia] function ComandoNametag(source) setPlayerNametagShowing(source, not isPlayerNametagShowing(source)) end addCommandHandler("show", ComandoNametag) [/lus] See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted September 15, 2014 Posted September 15, 2014 addCommandHandler( "show", function ( player ) setPlayerNametagShowing ( player, not isPlayerNametagShowing ( player ) ) end ) To Contact Me at Skype : [email protected]
Anubhav Posted September 15, 2014 Posted September 15, 2014 addCommandHandler( "show", function ( player ) setPlayerNametagShowing ( player, not isPlayerNametagShowing ( player ) ) end ) Same script which I posted. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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