19.08.2017, 14:33
You would have to create a variable which adds 1 to it when the player finds the moneybag and then save it using your saving system. The below is just an example only!
Code:
At the top of your script or in your enum where your user data is in (remove MAX_PLAYERS if thats the case) new pMoneyBagsFound[MAX_PLAYERS]; When a player picks up the money bag pMoneyBagsFound[playerid]++; You can then use pMoneyBagsFound[playerid] in a message to show! new string[144]; format(string, sizeof(string), "[playername] has found his %i moneybag!", pMoneyBagsFound[playerid]); SendClientMessageToAll(-1, string);