Sample of how NOT to code for approval: XpMod
5 Attachment(s)
Description: This is a little mod i got requested to make so here it is, the idea is that you should use it with HNS (HideNSeek) when a player types /xp he gets up a menu where he can buy health, he grenade, flash (1 and 2), smoke and respawn possibility level.
For example if i buy level 1 he grenade i get 15% chanse to get a he grenade every round. Admins with kick can take or give xp and admins with rcon can reset all xp's and levels. Cvars: Code:
//Xp you get when killing with any weapon except knife - Players - /xp - brings up the xp menu - Admin with kick - amx_takexp <target> <amount> - (Console) takes a players xp - amx_givexp <target> <amount> - (Console) gives a player xp - Admin with rcon - /clearxpmod - resets all players xp, levels in the server and the database Credits: Redfalcon - Beta tester and requester and cvars are based on what he wanted. And also thanks to all translators: here Notes: Requieres local compiling and download of fvault in includes xpmod.txt goes in data/lang |
Re: XpMod
Nice work.
|
Re: XpMod
GJ =D
|
Re: XpMod
You cannot post amxx files, even if it requires local compiling.
Notify the people downloading it to locally compile it until a moderator/approver uploads the compiled version for you. Also, this code is an eyesore. |
Re: XpMod
Ok fixed.
Thanks for the constructive critic |
Re: XpMod
Quote:
|
Re: XpMod
Exolent, it's simple, post your xpmod ;P
|
Re: XpMod
Quote:
Make a function for the 4 lines that prints the messages in a own function those are some ive been thinking of and i meant that it was constructive out of a pros view |
Re: XpMod
PHP Code:
PHP Code:
|
Re: XpMod
Ok then lets do it that way
|
Re: XpMod
PHP Code:
|
Re: XpMod
Quote:
Code:
PlayerPercent[id][1] = get_pcvar_num(PtHealth%d, PlayerLevels[id][1] - 1); |
Re: XpMod
Bugged like hell
|
Re: XpMod
Quote:
Neither do i but thats not why i made it i made it cause you kept nagging about it :P |
Re: XpMod
........
|
Re: XpMod
I'm actually amazed that you managed to make a simple thing so complicated. Your LoadData and menu functions are just amazing. Not to be rude at all, but you need a rewrite, not optimizations.
|
Re: XpMod
Quote:
|
Re: Sample of how NOT to code for approval: XpMod
Unapproved and stickied. The title should say it all. Maybe I'm being a little mean, but this has to be the worst code I've seen (except for the indentation, which is just mediocre). There is absolutely no way possible that this can ever be approved, unless you completely rewrote it, in which case it wouldn't be this mod anymore.
That's not to say that you shouldn't try. If you want to make it better, go to scripting help. However, this is not an acceptable plugin submission. |
Re: Sample of how NOT to code for approval: XpMod
Lol micke1101 i thode u was a great coder.....
|
Re: Sample of how NOT to code for approval: XpMod
:)
|
Re: Sample of how NOT to code for approval: XpMod
exolent can u make xp mod? because u better :D
|
Re: Sample of how NOT to code for approval: XpMod
He have a private Xp Mod
|
Re: Sample of how NOT to code for approval: XpMod
this xp mod .sma file dont good...
how can fix it? |
Re: Sample of how NOT to code for approval: XpMod
its so much helpful and new for me.
|
Re: Sample of how NOT to code for approval: XpMod
We're glad to have you here, i love to read more from your post. See you around.
|
All times are GMT -4. The time now is 01:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.