JoaoZanetti Posted November 25, 2015 Share Posted November 25, 2015 Hey, im making a mode in mta, and im in the last steps, i just need something like this: If have 1 player in server, show a message in chat + givePlayerMoney + addPlayerEXP. Someone have some resource working like this or can help me showing some way to do this ? Thanks. Link to comment
Best-Killer Posted November 26, 2015 Share Posted November 26, 2015 Use : OnPlayerLogin GivePlayerMoney Link to comment
1LoL1 Posted November 26, 2015 Share Posted November 26, 2015 Use :OnPlayerLogin GivePlayerMoney You are in wrong section and your help is bad. Use this: function test () local players = getPlayerCount() if (players) == 1 then -- Your code end end Link to comment
JoaoZanetti Posted November 27, 2015 Author Share Posted November 27, 2015 Use :OnPlayerLogin GivePlayerMoney You are in wrong section and your help is bad. Use this: function test () local players = getPlayerCount() if (players) == 1 then -- Your code end end Thank you, this helped me alot. Link to comment
1LoL1 Posted November 27, 2015 Share Posted November 27, 2015 Use :OnPlayerLogin GivePlayerMoney You are in wrong section and your help is bad. Use this: function test () local players = getPlayerCount() if (players) == 1 then -- Your code end end Thank you, this helped me alot. You're welcome. 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