Addons
Iv been thinking today how could scripting be easy, so I thought that I make an include that's helps in this
Features
Anti-Money Hack
have you ever wanted your server to be fare?
-SetMoney(playerid, amount of money you want)
-GiveMoney(playerid, amount of money your want it works with negative accounts to decrease money)
-ResetMoney(playerid) resets player money
-GetMoney(playerid) gets how much money the player have
-CheckMoney(playerid) check if his money isn't hacked, and if it is it set it to ints original value (I suggest using this on OnPlayerUpdate)
-CanPayMoney(playerid, amount of money) return true if he can pay the amount of money false if he cant
Others
-GetName(playerid), return the player name
-GetAddonsVersion() print in the console the version of the include
Last But Not Least
function system for example if you made a timer called Test you will have to forward it and then do public Test(bla bla bla) function make it easier once you made the timer you just do function Test(the arg if it had some)and then { your code here}
loop, after foreach looping has been easier I made another version of it and more basic which is loop
where it make it easier than for() you can use loop like this loop(x, MAX_PLAYERS) {this is your code here} this will make a loop along all the players its same as for(new x=0; x<MAX_PLAYERS; x++)
Bugs?
None if you found any tell me
Dowload[with example script]: Solidfiles
Please, wait for upcoming updates :)Iv been thinking today how could scripting be easy, so I thought that I make an include that's helps in this
Features
Anti-Money Hack
have you ever wanted your server to be fare?
-SetMoney(playerid, amount of money you want)
-GiveMoney(playerid, amount of money your want it works with negative accounts to decrease money)
-ResetMoney(playerid) resets player money
-GetMoney(playerid) gets how much money the player have
-CheckMoney(playerid) check if his money isn't hacked, and if it is it set it to ints original value (I suggest using this on OnPlayerUpdate)
-CanPayMoney(playerid, amount of money) return true if he can pay the amount of money false if he cant
Others
-GetName(playerid), return the player name
-GetAddonsVersion() print in the console the version of the include
Last But Not Least
function system for example if you made a timer called Test you will have to forward it and then do public Test(bla bla bla) function make it easier once you made the timer you just do function Test(the arg if it had some)and then { your code here}
loop, after foreach looping has been easier I made another version of it and more basic which is loop
where it make it easier than for() you can use loop like this loop(x, MAX_PLAYERS) {this is your code here} this will make a loop along all the players its same as for(new x=0; x<MAX_PLAYERS; x++)
Bugs?
None if you found any tell me
Dowload[with example script]: Solidfiles