Raised This Month: $ Target: $400
 0% 

Confusing things ( for me )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 12-09-2014 , 12:03   Confusing things ( for me )
Reply With Quote #1

Often I meet with some small things whose purpose I not understan.

For example 1:
PHP Code:
public forwardClientSpawn_Postclientattackergib )
{    
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )        
        
zp_override_user_modelclientg_vipModelHuman[random_num(0sizeof g_vipModelHuman  1)] );    

What's this for,is it necessary to be there?
PHP Code:
gib 
example 2:
PHP Code:
public OnPlayerSpawnPost(id)
{
    if(
is_user_alive(id) && !is_user_zombie(id) && (get_user_flags(id) & VipFlag))
    {
        new 
Float:cHealthFloat:cArmor
        pev
(idpev_healthcHealth)
        
pev(idpev_armorvaluecArmor)
        if(
cHealth VipStartHealthset_pev(idpev_healthVipStartHealth);
        if(
cArmor VipStartArmorset_pev(idpev_armorvalueVipStartArmor);
        
cs_set_user_money(idcs_get_user_money(id)+(2000));
        
give_item(id"weapon_hegrenade")  
        if(!
user_has_weapon(idCSW_HEGRENADE))
                
give_item(id"weapon_hegrenade"
                      
        
//Set player model here.
        
if(!is_user_zombie(id)) cs_set_player_model(idVipModel);
    }

What is the role of a character
PHP Code:

somewhere it has(at the end of the sentence) somewhere it does not
Both examples are for vip player model(skin) and in the second case, which I use there is no
PHP Code:
gib 
Krtola is offline
Send a message via Skype™ to Krtola
 



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 15:31.


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