15.11.2016, 15:00
Hello guys,i came back and i started to script again but i kinda forgot something.
So i got some cmd like /getgift that players can get after 50 hours on server.
I made the function that counts the hours,everything is ok.
I make a progressbar to show how much you have til` you can /getgift,but how can i check if the player already used the CMD? so they cant use the cmd over and over after they reached 50 level.
i Though about making a new column in mysql with Gift and 2 options Yes/No
and when the player connects,a function checks if the player didnt use the cmd,and then it shows him the progress bar.......or,if he already used it [ yes on mysql database] it doesnt show it to him.
how can i make this ? any ideas?
So i got some cmd like /getgift that players can get after 50 hours on server.
I made the function that counts the hours,everything is ok.
I make a progressbar to show how much you have til` you can /getgift,but how can i check if the player already used the CMD? so they cant use the cmd over and over after they reached 50 level.
i Though about making a new column in mysql with Gift and 2 options Yes/No
and when the player connects,a function checks if the player didnt use the cmd,and then it shows him the progress bar.......or,if he already used it [ yes on mysql database] it doesnt show it to him.
how can i make this ? any ideas?