AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help]Model Question (https://forums.alliedmods.net/showthread.php?t=159309)

2reason2kill 06-15-2011 13:20

[help]Model Question
 
is this right?



PHP Code:

new const gszModel[] = "models/player/model/model.mdl";




public 
plugin_precache()
{
    
precache_modelgszModel )
}



    if(
is_user_alive(id)) {
        
give_sk_items(id)
        if (
PlayerClass[id] == CLASS_somting)
        {
           
cs_set_user_modelid"model" )  
        } 


fysiks 06-15-2011 13:54

Re: [help]Model Question
 
Well, .... does it work?

2reason2kill 06-15-2011 14:02

Re: [help]Model Question
 
Quote:

Originally Posted by fysiks (Post 1488826)
Well, .... does it work?

i didnt test

fysiks 06-15-2011 14:04

Re: [help]Model Question
 
Quote:

Originally Posted by 2reason2kill (Post 1488838)
i didnt test

Test your code before posting here. Nine times out of ten you will be able to figure it out on your own (if you have any sort of programming aptitude).


All times are GMT -4. The time now is 23:26.

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