Raised This Month: $ Target: $400
 0% 

Commands Don't Execute


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 05-23-2010 , 19:50   Re: Commands Don't Execute
Reply With Quote #3

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""user_connect")
    
register_clcmd("say /guns""WeaponMenu"ADMIN_USER)
}

public 
user_connect(id)
{
    if(
is_user_alive(id)) {
        new 
CsTeams:team cs_get_user_team(id);
        if(
team == CS_TEAM_T)
        {
            
strip_user_weapons(id);
            
give_item(id"weapon_knife");
            
ColorChat(id"^4%s^1As a terrorist, you will be a ninja!");
            
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha25);
            
set_user_health(id200);
            
set_user_gravity(id0.5);
            
set_user_maxspeed(id375.0);
            
ColorChat(id"^4%s^1Your objective is to kill all humans, good luck!");
        }
        if(
team == CS_TEAM_CT)
        {
            
ColorChat(id"^4%s^1As a counter-terrorist, you will be a human!");
            
set_user_rendering(idkRenderFxGlowShell255255255kRenderTransAlpha125);
            
set_task(1.0"WeaponMenu");
            
ColorChat(id"^4%s^1Your objective is to kill the ninjas, good luck!");
        }
    }

FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
 



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:22.


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