When shall i give money?
#1

In which public shall i give money to the player?
If i do by OnPlayerConnect, he gets on every
connection 5k, if i do OnPlayerSpawn, he gets
5k, every spawn :S, what shall i do?
Reply
#2

If you gave him 5k when he connects, then it shouldn't be a problem because it would reset when he left. Unless you have a system to save money, then I would suggest giving it to him when he registers.
Reply
#3

Quote:
Originally Posted by Baked-Banana
If you gave him 5k when he connects, then it shouldn't be a problem because it would reset when he left. Unless you have a system to save money, then I would suggest giving it to him when he registers.
Hey, yes, i have a register system, thanks
didn't think about it, THANKS!
Reply
#4

OnPlayerConnect(playerid) {
if(GetPlayerMoney(playerid) < 5000) {
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,5000);
}

how about this
Reply
#5

Just use a variable which gets saved when players leaves server. And check when it's 0 to give him, otherwise not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)