Raised This Month: $ Target: $400
 0% 

[help]lasermine


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Damn1k
Junior Member
Join Date: Dec 2010
Old 12-22-2010 , 03:48   [help]lasermine
Reply With Quote #1

Hi to everybody!

I'm using plugin zp_lasermine_28.amxx (remaked by Shidla, I guess).

I want change this:
Code:
SetStartAmmo(id)
{
	new stammo = get_pcvar_num(g_LSTAMMO);
	if(stammo <= 0) return PLUGIN_CONTINUE;
	g_havemine[id] = (g_havemine[id] <= stammo) ? stammo : g_havemine[id];     return PLUGIN_CONTINUE;
}
to this
Code:
SetStartAmmo(id)
{
	new stammo = get_pcvar_num(g_LSTAMMO);
	if(stammo <= 0) return PLUGIN_CONTINUE;
	g_havemine[id] = (g_havemine[id] <= stammo) ? stammo : g_havemine[id];
	new viplstammo = get_pcvar_num(g_VIPLSTAMMO);
    if(get_user_flags(id) & ADMIN_LEVEL_H)
    g_havemine[id] = (g_havemine[id] <= viplstammo) ? viplstammo : g_havemine[id]; 
     return PLUGIN_CONTINUE;
}

Also i added cvar commands:
Code:
g_VIPLSTAMMO     = register_cvar("zp_ltm_startvipammo","3")
and write into consts:
Code:
new g_LRDMG,g_LFF,g_LCBT, g_LDELAY, g_LVISIBLE, g_LSTAMMO, g_VIPLSTAMMO, g_LACCESS, g_LGLOW, g_LDMGMODE, g_LCLMODE

Is it all right?
Damn1k is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-22-2010 , 04:22   Re: [help]lasermine
Reply With Quote #2

Test your code before posting.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 11:43.


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