Raised This Month: $ Target: $400
 0% 

Rambo mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 05-25-2010 , 12:30   Rambo mod
Reply With Quote #1

I'm working on a rambo mod.. Which is done.. But this doesnt work.. it won't give me weapons when i spawn.. really wierd o.o .. heres the function

PHP Code:
public Event_Ham_Spawn(id)
{
    new 
rankposstats[8], body[8]
    
get_user_stats(idstatsbody)
    
rankpos stats[0]
    
    if(
is_user_alive(id))
    
set_task(0.1"player_glowteam"id)
    
client_cmd(0,"spk ^"fvox/blip^"")
    
ColorChat(idGREEN"^x04[Rambo Mod]^x01 You Respawned (rank: %i)"rankpos)
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
cs_set_weapon_ammo(give_item(id"weapon_deagle"), 20)
    
cs_set_weapon_ammo(give_item(id"weapon_m249"), 200)
    
cs_set_weapon_ammo(give_item(id"weapon_hegrenade"), 10)
    
cs_set_user_bpammo(idCSW_DEAGLE100)
    
cs_set_user_bpammo(idCSW_M2491000)

FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-25-2010 , 12:37   Re: Rambo mod
Reply With Quote #2

PHP Code:
if(is_user_alive(id))
{
         
// Code

__________________
Retired.
Xalus is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-25-2010 , 16:21   Re: Rambo mod
Reply With Quote #3

RegisterHam(Ham_Spawn, "player", "Event_Ham_Spawn")
->
RegisterHam(Ham_Spawn, "player", "Event_Ham_Spawn", 1)
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 05:16.


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