Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: CSO- SVDEX Update:1.14( no animation )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 02-02-2011 , 05:56   Re: [ZP] Extra Item: CSO- SVDEX V:1.12( no animation )
Reply With Quote #1

1)
PHP Code:
        g_ammo[player] += 5
        client_print
(player,print_chat"You bought 5 nade for %s"weapon_name); 
Dont hardcode this , make a cvar to configurate number of nade , max grenade also .
2)
PHP Code:
if(is_user_alive(id) && !zp_get_user_zombie(id) && get_user_weapon(id) == CSW_AK47 && g_svd[id]) 
Check this before the
PHP Code:
    new button get_uc(uc_handleUC_Buttons)
    new 
ent find_ent_by_owner(-1"weapon_ak47"id)
    new 
fInReload get_pdata_int(entm_fInReload4
So these won't run if the cases are false.


3) Create a new array of g_weapon to store the weapon data , in CurWeapon event , g_weapon[id] = read_data(2) , don't use lots of get_user_weapon .Because you don't need those (plrClip, plrAmmo) as well.
4)
PHP Code:
        fm_give_item(player,"weapon_ak47")
        
fm_give_item(player,"ammo_9mm"// remove this 

5)
PHP Code:
g_ammo[player] = 
make a cvar for this :d

6)
PHP Code:
        for(new 0sizeof fire_soundi++)
        
emit_sound(idCHAN_AUTOfire_sound[i], 1.0ATTN_NORM0PITCH_NORM
What is this ? Play all sound in fire_sound[] ? This should be randomed .
5c0r-|3i0 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:26.


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