GrinningTrout Posted May 17, 2016 Share Posted May 17, 2016 so, if i need make script that start mod for some players (not all players) what function should i use? Link to comment
KariiiM Posted May 17, 2016 Share 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"? Link to comment
Cadell Posted May 17, 2016 Share 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. Link to comment
GrinningTrout Posted May 17, 2016 Author Share 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. Link to comment
KariiiM Posted May 17, 2016 Share Posted May 17, 2016 (edited) . Edited May 17, 2016 by Guest Link to comment
Moderators IIYAMA Posted May 17, 2016 Moderators Share 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) Link to comment
GrinningTrout Posted May 17, 2016 Author Share 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 ? Link to comment
Moderators IIYAMA Posted May 17, 2016 Moderators Share 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) Link to comment
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