Raised This Month: $ Target: $400
 0% 

Name into Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pattinho
Member
Join Date: Dec 2007
Old 05-10-2012 , 06:24   Re: Name into Model
Reply With Quote #1

I found something in the plugin of American Football Mod, he use this for set a player a model

PHP Code:
public set_user_model(id)
{
    
id -= 30437lastmove[0] = (lastmove[0] <= 0.2) ? 0.0 lastmove[0] - 0.2;
    
// check to make sure player has a unique skin
    
new user_team get_user_team(id);
    for (new 
1<= MaxPlayersi++)
        if (!
is_bot[i] && != id)
        if (
is_user_connected(i))
        if (
skin[i] == skin[id])
        if (
get_user_team(i) == user_team)
            
set_random_skin(id);
    
// set the model
    
engfunc(EngFunc_SetClientKeyValueidengfunc(EngFunc_GetInfoKeyBufferid), "model"model_names[(get_user_team(id) == 1) ? 10 21]), set_pev(idpev_skinskin[id] != -skin[id] : 0);

PHP Code:
engfunc(EngFunc_SetClientKeyValueidengfunc(EngFunc_GetInfoKeyBufferid), "model"model_names[(get_user_team(id) == 1) ? 10 21]), set_pev(idpev_skinskin[id] != -skin[id] : 0); 
but i dont understand this
Pattinho is offline
Reply



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 00:20.


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