Raised This Month: $ Target: $400
 0% 

Changin Model via Steamid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-02-2010 , 19:05   Changin Model via Steamid
Reply With Quote #1

Hello guys!

Im trying to change the Model by my Steamid:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>

public plugin_init() {
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}

public 
plugin_precache()
{
    
precache_model("models/player/mottzi/mottzi.mdl")
}

public 
fwHamPlayerSpawnPost(id
{
    
set_task(3.0"model_set1"id)
}

public 
model_set1(id)
{
    if(
is_user_alive(id) && !zp_get_user_zombie(id))
    {
        new 
steamid[36]
        
get_user_authid(idsteamid35)
        if(
equal(steamid "STEAM_0:1:18593568"))
        {
            
cs_set_user_model(id"mottzi")
        }
    }

Model Prechached, and Its in the Player Folder but why it dont works?!

Please Help me guys i rly need that.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
 



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


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