Raised This Month: $ Target: $400
 0% 

Commands Don't Execute


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 05-23-2010 , 19:06   Commands Don't Execute
Reply With Quote #1

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)
        {
            
fm_strip_user_weapons(id);
            
give_item(id"weapon_knife");
            
ColorChat(id"^4%s^1As a terrorist, you will be a ninja!");
            
fm_set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha25);
            
fm_set_user_health(id200);
            
fm_set_user_gravity(id0.5);
            
fm_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!");
            
fm_set_user_rendering(idkRenderFxGlowShell255255255kRenderTransAlpha125);
            
set_task(1.0"WeaponMenu");
            
ColorChat(id"^4%s^1Your objective is to kill the ninjas, good luck!");
        }
    }

Whats wrong here? It wont display the messages or execute anything.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.

Last edited by GXLZPGX; 05-23-2010 at 19:15.
GXLZPGX is offline
 


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


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