Server side money [Problem with reward]
#1

So i want to use this event system on my server https://sampforum.blast.hk/showthread.php?tid=297988 .But the problem is when you finish the event you get the 5k reward and then the server removes it,what should i do?How to fix this.Help

This is the way the player gets the money
PHP код:
GivePlayerMoney(playerid,5000); 
Reply
#2

Maybe something like this?

Код:
PlayerInfo[playerid][Money] += 5000;
UpdatePlayerMoney(playerid);
Код:
UpdatePlayerMoney(playerid)
{
	ResetPlayerMoney(playerid);
	GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
}
Reply
#3

PHP код:
//GameMode
forward GivePlayerMoneyEx(playerid,amount);

public 
GivePlayerMoneyEx(playerid,amount){
    
//server money function
    
    
return 1;
}


//Other Script
CallRemoteFunction("GivePlayerMoneyEx","dd",playerid,ammount); 
Reply


Forum Jump:


Users browsing this thread: