Quote:
Originally Posted by karemmahmed22
Ok, Now Put the array (variable) on top of your script under your defines / variables,
And OnPlayerUpdate:-
PHP код:
if(GetPlayerMoney(playerid) > Money[playerid])
{
new IncreasedAmount = GetPlayerMoney(playerid) - Money[playerid];
// your code.
Money[playerid] = GetPlayerMoney(playerid) // this to update the variable with the current cash so, it does the same again after cash gets increased again..
}
Edit: OnPlayerConnect
PHP код:
Money[playerid] = 0;
To reset the array 
|
Yea but this can't detect if the player has gain or lost money for example if the player got money I will put + increasedamount$ or if lost -increasedamount$
Код:
Money[playerid] += 50000
This will mean that will send the message if the player has 50k+, so can I only put new Money[playerid]?
- EDIT -
I didn't see the edit, sorry gotta test it