Raised This Month: $ Target: $400
 0% 

Load model by SteamId


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-01-2017 , 15:14   Load model by SteamId
Reply With Quote #1

Hello. What's wrong no this script? It is supossed to change the player model in Team Fortress Classic from using vault, but I get argument(2) type mismatch for tfc_setmodel. Thanks for reading and I hope someone will help me.

Code:
public model_change(id)
{
    //Retrieve a single item from vault
    //Example: STEAM_0:0:1234 16000

    new szKey[40];
    formatex( szKey , charsmax( szKey ) , "%sMODEL" , g_szAuthID[id] );
    new iModel = nvault_get( g_Vault , szKey );

    //If our money key was found, set the users money to the value we read from vault and
    //delete the key so the player will not get the same money again.
    if ( iModel )
    {
        tfc_setmodel( id , iModel , "0" );
        nvault_remove( g_Vault , szKey );
    }
}
DarthMan 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 21:02.


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