JoaoZanetti Posted November 25, 2015 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.
1LoL1 Posted November 26, 2015 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
JoaoZanetti Posted November 27, 2015 Author 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.
1LoL1 Posted November 27, 2015 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.
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