Raised This Month: $ Target: $400
 0% 

{req}Hide n Seek help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Miko000000
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 05-22-2009 , 14:22   {req}Hide n Seek help
Reply With Quote #1

hello i need help with my code

i need >
1.When you are Killer (ct) and you will kill victim(t) You will be invisible T for 5 seconds and Victim will be CT and changed.

Code:
public fwdKilledPlayer( iVictim, iKiller ) {
    new killer = read_data(1)
    new victim = read_data(2)
    
    if(killer == 0 && get_user_team(victim) == 1) 
    {
       
        
        fm_cs_set_user_team(killer, 1)
        fm_cs_set_user_team(victim, 2);
    }

________________________________________

public fwdKilledPlayer( iVictim, iKiller ) {
    new killer = read_data(1)
    new victim = read_data(2)
    
    if(victim == 0 && get_user_team(killer) == 1) 
    {
    
    
        fm_cs_set_user_team(lucky, 1)
        client_print(lucky, print_chat, "[HNS] An idiot jumped off and you were lucky and got transfered to Terrorist.")
        
        fm_cs_set_user_team(victim, 2);
    }
and i need paste to code

Code:
Health(id)
{
    if(get_user_health(id) != 100)
        fm_set_user_health(id, 100)
}
and

Code:
public GiveItems(id)
{    
    fm_strip_user_weapons(id)
    
    switch(get_user_team(id))
    {
        case 1:
        {    
                fm_give_item(id, "weapon_flashbang")
                fm_give_item(id, "weapon_smokegrenade")
                fm_give_item(id, "weapon_hegrenade")
        }
        
        case 2:
        {
                fm_give_item(id, "weapon_knife")        
        }
    }
}
but i have got this forward !

Code:
public SpawnPlayer(id)  { 
    if((get_user_flags(id) & ADMIN_LEVEL_C))
        fm_set_user_health(id, 200)
    
    client_cmd(id, "weapon_usp;weapon_glock18;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait ; drop");     
    
    return HAM_HANDLED;
    
}
Miko000000 is offline
Send a message via ICQ to Miko000000 Send a message via Skype™ to Miko000000
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 01:31.


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