Raised This Month: $ Target: $400
 0% 

HELP| Mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr_Boris
Junior Member
Join Date: Aug 2011
Old 04-30-2012 , 15:25   HELP| Mod
Reply With Quote #1

why this won't work?


PHP Code:
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn"1)



public 
fw_PlayerSpawn(id)
{
    if (!
is_user_alive(id) || !get_user_team(id))
        return;
    
    
//Reset stuff
    
g_PlayerData[id][PlayerIsRebel] = false;
    
g_PlayerData[id][PlayerIsInLr] = false;
    
g_PlayerData[id][LrCanShootDeagle] = false;
    
g_PlayerData[id][GivingItem] = false;
    
remove_task(id+TASK_TRAIL);
    
//Get his team
    
new team get_user_team(id);
    
    
//Remove any glow
    
fm_set_rendering(id);
    
    
//Strip all weapons
    
fm_strip_user_weapons(id);
    
    
//Show welcome message
    
if(!g_PlayerData[id][SeenWelcomeMsg] && id != 0)
    {
        
colored_print(id"^04[ Jail-Break ]^01 Welcome ^01!");
        
//*******************************************************
        //* PLEASE DON'T REMOVE OR EDIT LINE BELOW THIS COMMENT *
        //*******************************************************
        
colored_print(id"");
        
//*******************************************************
        
g_PlayerData[id][SeenWelcomeMsg] = true;
    }
    if(!
g_loadedvault[id])
    {
        
stats_load(id);
        
g_loadedvault[id] = true;
    }
    
/*
    for(new i = 1; i <= 33; i++)
    {
    g_attackers[id][i] = 0;
    }
    */
    
    
switch(team)
    {
        
//If he's terrorist
        
case CS_TEAM_T:
        {
            
/*
            if(g_PlayerData[id][PlayerHasFreeday] && g_PlayerData[id][iFreedayCount] >= 1)
            {
            set_freeday(id);
            }
            */
            
            //If it's terrorist (prisoner) give only knife
            
cs_set_user_armor(id0CS_ARMOR_NONE);
            
fm_give_item(id"weapon_knife")
            
//KNIFE_MODEL[id] = random_num(1, KNIFE_MODELS);
            
            //Incrase alive prisioner count
            //g_aPrisionerCount++;
        
}
        case 
CS_TEAM_CT:
        {
            
g_PlayerData[id][ClassCT] = CT_CLASS_REGULAR;
            
giveWeapons(id);
            
            if(
get_pcvar_num(cvar_CtClasses) > 0)
                
menu_show(idMENU_CLASSCT);
        }
    }


Last edited by Mr_Boris; 04-30-2012 at 15:26.
Mr_Boris is offline
 



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 07:45.


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