GrinningTrout Posted May 17, 2016 Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use?
KariiiM Posted May 17, 2016 Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? What do you mean by "start mod" and "some players"?
Cadell Posted May 17, 2016 Posted May 17, 2016 you can pass player reference as formal argument in function and you can process the statements in that functions using that player reference. Then all statements will be executed for that player reference not for all server players.
GrinningTrout Posted May 17, 2016 Author Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? What do you mean by "start mod" and "some players"? i mead start mod like deathmatch, race.... like arena.
Moderators IIYAMA Posted May 17, 2016 Moderators Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? Using: loadstring But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that)
GrinningTrout Posted May 17, 2016 Author Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? Using: loadstring But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that) can u give me an example ?
Moderators IIYAMA Posted May 17, 2016 Moderators Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? Using: loadstring But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that) can u give me an example ? local exampleString = ' addEventHandler("onClientRender", root, function () setElementPosition(localPlayer, 0, 0, 100) -- I am stuck... Not funny! end) ' Load the code for a single client! loadstring(exampleString)
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