About levels and level system
Hello!
I truly hope this is not in wrong section of forum. I tried making some level system where you get levels by...killing. xD I followed this tutorial. Fixed few errors because author didn't test his own code before saying it works but that doesn't matter. Now the thing is that i compiled it successfully and i am pretty much not sure if it works. I haven't made any level check (when player types /level or /xp and it shows his level), i don't know how to do that, so it makes me a bit worried does plugin work ? In above mentioned thread, as i can see the plugin has some cvars and HUD. None of these are shown on my HLDS (yeah i am using Dedicated Server CURRENTLY). So, it might be due that, or not i don't know. Can you guys say if this thing works ? Another thing I REALLY NEED is to make it so player unlock knife ONLY if he/she has level for that knife. I've made some knives in menu, i found models (but i don't know how to insert them to code). So when player selects knife from menu, he will get message that he don't have required level for that knife, and if he has level for that knife, he will get model of knife. Anyone who can help me out with this ? CODE: |
Re: About levels and level system
your plugin is just simply not running, provide your error log file with debug logs pls.
|
Re: About levels and level system
Quote:
|
Re: About levels and level system
Quote:
This pub/func not found useful i guess |
Re: About levels and level system
Quote:
Anyways, how to connect levels with each knife ? I want each knife to be unlocked by each level so player can't select knife if he doesn't have required level. Anyone knows ? |
Re: About levels and level system
Example:
remmeber to public plugin_precache( ) Code:
enum _:eblablaCode:
new const szblabla[ ] [ eblabla ] =Code:
|
Re: About levels and level system
Wait, but what does
sz stands for ? Code:
enum KnifeAlso what do i replace szMenu with ? I didn't really understand that :s |
Re: About levels and level system
Quote:
Code:
enum _:eblablabut szKnifeName you use in menu to see knives names: Code:
formatex( szMenu, charsmax( szMenu ), "\w%s \d[\rLOCKED \d- \rREQUIRES LEVEL %d\d]",https://forums.alliedmods.net/showthread.php?t=140103 about enum |
| All times are GMT -4. The time now is 17:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.