Raised This Month: $ Target: $400
 0% 

Ammo helping.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-30-2008 , 06:31   Ammo helping.
Reply With Quote #1

SORRY!!double thread..internet slow!!Very sorry
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-30-2008 , 06:33   Re: Ammo helping.
Reply With Quote #2

fm_give_item(id, "ammo_xxx");
This is like you type in your xp mod give_item,but it better.
Also look here: http://wiki.alliedmods.net/CS_Weapons_Information
What ammo of the weapon.

This is a stock.
PHP Code:
//from fakemeta utility STOCK
stock fm_give_item(index, const item[])
{
    if (!
equal(item"weapon_"7) && !equal(item"ammo_"5) && !equal(item"item_"5) && !equal(item"tf_weapon_"10))
        return 
0

    
new ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringitem))
    if (!
pev_valid(ent))
        return 
0

    
new Float:origin[3]
    
pev(indexpev_originorigin)
    
set_pev(entpev_originorigin)
    
set_pev(entpev_spawnflagspev(entpev_spawnflags) | SF_NORESPAWN)
    
dllfunc(DLLFunc_Spawnent)

    new 
save pev(entpev_solid)
    
dllfunc(DLLFunc_Touchentindex)
    if (
pev(entpev_solid) != save)
        return 
ent

    engfunc
(EngFunc_RemoveEntityent)

    return -
1


Last edited by xbatista; 12-30-2008 at 06:39.
xbatista is offline
Send a message via Skype™ to xbatista
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-30-2008 , 06:36   Re: Ammo helping.
Reply With Quote #3

Sorry double thread.My internet slow!Hope can forgive me.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-30-2008 , 06:37   Re: Ammo helping.
Reply With Quote #4

OK I posted here.Copy description from other thread to this
So you fixed your problem? ^^

Last edited by xbatista; 12-30-2008 at 06:40.
xbatista is offline
Send a message via Skype™ to xbatista
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-30-2008 , 07:48   Re: Ammo helping.
Reply With Quote #5

Yes.Thx to you.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Reply


Thread Tools
Display Modes

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 09:12.


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