Raised This Month: $51 Target: $400
 12% 

Become VIP Plus (+API)


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-16-2016 , 07:20   Re: Become VIP Plus (+API)
Reply With Quote #21

Everything is bad if you don't know how to use it. He put a random advertisement in the cvar, so he could easily do the same in users.ini and give all flags to everyone. Nothing of the stuff above points that the plugin is bad.

Last edited by OciXCrom; 06-16-2016 at 07:21.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-19-2016 , 10:11   Re: Become VIP Plus (+API)
Reply With Quote #22

Quote:
SAVING THE DATA BY NICKNAME: Using this will make the plugin save data by nickname, instead of SteamID. Bear in mind that this option can only be changed when the CSStats option is disabled. To enable this option, you need to add "//" in this line:
There is no reason to save by name. Since you save on steam by default it is acceptable, but I would remove this since it is not safe. One can get other player kills by simply changing his name.

PHP Code:
#define USE_HUD 
#define QUICK_SAVE  
#define USE_STEAM 

#define HUD_COLOR_RED 0
#define HUD_COLOR_GREEN 255
#define HUD_COLOR_BLUE 0
#define HUD_POSITION_X 0.02
#define HUD_POSITION_Y 0.40
#define HUD_EFFECTS 2
#define HUD_FXTIME 1.0
#define HUD_HOLDTIME 5.0
#define HUD_FADEINTIME 0.03
#define HUD_FADEOUTTIME 0.1 
Make cvars, don't hardcode configurations. Then, following natives become pointless since one can check cvar value directly:
PHP Code:
UsingHud() -- Checks whether the plugin is using HUD message.
UsingSteam() -- Checks whether the plugin is using Steam.
UsingQuickSave() -- Checks whether the plugin is using Quick Save
In natives making some safety checks would be welcome. Something like checking param number to see if native is used correctly and player index is correct.

PHP Code:
for(new iiPnumi++)
    
g_iKills[iPlayers[i]] = 
Use arrayset()

In restartPlayer I think it is okay to allow owner to reset stats of a non-connected player. Just make it pass the steamid/name(depending on configuration) instead of userid & update vault.

As said before, saving on name is a big headache. You have to properly handle it. For example, you should hook ClientUserInfoChanged and transfer the kills from one name to another if someone decide to change name.
__________________
HamletEagle is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-24-2016 , 08:35   Re: Become VIP Plus (+API)
Reply With Quote #23

Few days have passed and no changes made.

Unapproved for now.
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-24-2016 , 09:46   Re: Become VIP Plus (+API)
Reply With Quote #24

Sorry, I didn't have time to make the changes these days. I'll make them soon and reupload the plugin.

Last edited by OciXCrom; 06-24-2016 at 09:50.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ish12321
Veteran Member
Join Date: May 2016
Old 12-29-2016 , 17:18   Re: Become VIP Plus (+API)
Reply With Quote #25

What about a cvar that once he get VIP he loses his VIP after xx days
Means he gets a temp VIP
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
numbster
Member
Join Date: Dec 2016
Old 12-21-2017 , 05:08   Re: Become VIP Plus (+API)
Reply With Quote #26

I wanna write in becomevip.inc

deage+ammo, 2flash, 1HE, armor

I don't know PHP. Can someone help me.
numbster is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-21-2017 , 07:39   Re: Become VIP Plus (+API)
Reply With Quote #27

Quote:
Originally Posted by numbster View Post
I wanna write in becomevip.inc

deage+ammo, 2flash, 1HE, armor

I don't know PHP. Can someone help me.
1. You don't write anything in becomevip.inc.
2. PHP has nothing to do with any of this.
3. This plugin is no longer supported.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
numbster
Member
Join Date: Dec 2016
Old 12-21-2017 , 07:56   Re: Become VIP Plus (+API)
Reply With Quote #28

First in becomevip.inc idk how to write for bonus stuff...

second is sadly is out to support.
numbster is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-21-2017 , 13:01   Re: Become VIP Plus (+API)
Reply With Quote #29

1. You don't write anything in becomevip.inc.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
numbster
Member
Join Date: Dec 2016
Old 12-23-2017 , 10:24   Re: Become VIP Plus (+API)
Reply With Quote #30

then where?

Last edited by numbster; 12-23-2017 at 10:25.
numbster is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode