How to show total Moneybags and reactions won
#2

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);
Reply


Messages In This Thread
How to show total Moneybags and reactions won - by Rohit12 - 19.08.2017, 14:18
Re: How to show total Moneybags and reactions won - by FreAkeD - 19.08.2017, 14:33
Re: How to show total Moneybags and reactions won - by Rohit12 - 19.08.2017, 15:45
Re: How to show total Moneybags and reactions won - by Rohit12 - 20.08.2017, 18:30
Re: How to show total Moneybags and reactions won - by TheCman - 20.08.2017, 18:31
Re: How to show total Moneybags and reactions won - by Rohit12 - 21.08.2017, 17:37
Re: How to show total Moneybags and reactions won - by thegamer355 - 24.08.2017, 05:59

Forum Jump:


Users browsing this thread: 1 Guest(s)