Quote:
Originally Posted by myk-
can you make models more personalized ? with mysql, steamid or specific access flags for exatly that plugin like config file where have list like m4a1 m4a1_silver steamid? , want make something global offensive mod for cs 1.6 server. with some plugins like presents or bank system in cs can make that player can buy skin or pick up in game.
|
if i understand what you are asking, it would reasonably easy to achieve with just a few code changes. i have no incentive to code it myself, but here is loosely how you would accomplish your goal.
currently my version of IVM reads data from its two .ini files - this could be any method of database that amxx is configured to work with - vault(?), mysql, etc.
you will essentially need to familiarize yourself with the various calls and format statements and get the script working with mysql.
once you can comfortably retrieve and save data from your mysql database, you can outline and develop your 'banking' system. your banking system will more or less use the same checks that my superhero level system uses - it uses a value or flag to see if you have access to the skin or not.
if a player needs to save up 160,000$ to unlock a skin, create a command similar to 'buyxp' which will dump their current cash amount into a field in your database, attached by key to their steam_id.
after 10 rounds of 16k 'buyxp' commands, the user would have spent 160,000$ and you can either assign that person a flag, or just use the $ amount itself as a comparator.
-
i was considering adding some mysql support myself; to remember player choices between rounds, so you dont have to reset your models on mapchanges. ill be sure to post if i ever do.
__________________