Player model changes.
Hello I got a diablo mod server and I wanted to give assassins their own player model. When I added this to the script it compiled without any trouble, but when I picked the assassin race the server crashes. Does anyone see anything wrong or any improvements?
PHP Code:
|
Re: Player model changes.
It should be "AssassinCT" and "AssassinT"
|
Re: Player model changes.
Also, folder has to be named with the same name as model, and has to be put directly in player folder.
models/player/MODELNAME/MODELNAME.mdl And don't forget to precache models. |
Re: Player model changes.
Thanks for the quick replies. When I have followed your reactions I come with a compilation error that says it's losing it's identation. From the beginning of the "if(player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_CT)"
to the last bracket of the "if(player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_T)" Would there be any reason for this? |
Re: Player model changes.
post your code hear, it's more easy to help you.
|
Re: Player model changes.
It's quite some big script so I will just post the essential things:
PHP Code:
PHP Code:
PHP Code:
|
Re: Player model changes.
cs_set_user_model(id, "ASSASSINCT") -> AssassinT
"models/player/MyModel/MyModel.mdl ; cs_set_user_model needs MyModel. |
Re: Player model changes.
Sorry I didn't quite understand the last sentance, Right now I got the following:
PHP Code:
I have changed ASSASSIN to Assassin because it looks better, but I think I fixed that through the script now. |
Re: Player model changes.
But still I got 1 compile error with the loose identation.
Edit: It does work, but I still have these loose identations, it won't affect the script? |
Re: Player model changes.
No, it won't affect. It means just your code is not indented properly. You can see well that's not well aligned.
|
| All times are GMT -4. The time now is 19:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.