SA-MP Forums Archive
Proper Hit Contract System? Everyone's Opinion Needed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Proper Hit Contract System? Everyone's Opinion Needed (/showthread.php?tid=86280)



Proper Hit Contract System? Everyone's Opinion Needed - FedorMS - 13.07.2009

Dear scripters, you and me. What is your method, for storing hit contract information?
I haven't coded in a while, and I tried to create a hit contract system using enums and one array. Well, it works dandy, only problem, the enum works only for one player. Here's the code. Plus, I haven't figured out a way to nullify the player once the hit has been set.

Code:
enum HitContract
{
	HITPLACER,
	HIT,
	CASH
}

static HitPlace[MAX_PLAYERS][HitContract];
Tell me how you structure the hit contract system! Thanks.