View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-23-2017 , 12:55   Re: [GunXP] Prestige Shop 1.0
Reply With Quote #10

1. dproto installed.
2. Using Fakemeta Util is wrong.
3. Use style 0 of natives.
4. You can create
PHP Code:
new PrestigeCost 
before switch so you don't need to create it many times.
5.
PHP Code:
for(id 1id <= get_maxplayers(); id++) { 
Cache get_maxplayers on plugin_init.
6.
PHP Code:
if(is_user_alive(id) && is_user_connected(id)) 
No need to check is_user_connected.
7. Use nVault for saving.
8. Why are you using a HudMessage stock?
9. Indent your code properly.
10. Ultimately redundant plugin, bad idea and awful code.

Cya..
__________________
edon1337 is offline