AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [CS:GO] Entity prop server crash (https://forums.alliedmods.net/showthread.php?t=325005)

ivenuss 06-04-2020 14:20

[CS:GO] Entity prop server crash
 
Hello I am having trouble with PROP models, when player get PROP model and dies with it or get killed, then his game crash. If you know how to fix it, I really apprecea it.

PHP Code:

public void OnMapStart()
{
    
PrecacheModel("models/props_urban/plastic_chair001.mdl"true);
}

public 
Action Cmd_Model(int clientint args)
{
    
SetEntityModel(client"models/props_urban/plastic_chair001.mdl");



kadet.89 06-04-2020 16:19

Re: [CS:GO] Entity prop server crash
 
What if set the model back to the original one right before player dies. You can take over a solution from here: https://forums.alliedmods.net/showthread.php?p=2384364

ivenuss 06-05-2020 04:48

Re: [CS:GO] Entity prop server crash
 
Quote:

Originally Posted by kadet.89 (Post 2703969)
What if set the model back to the original one right before player dies. You can take over a solution from here: https://forums.alliedmods.net/showthread.php?p=2384364

That solved the problem, thanks for help. :)


All times are GMT -4. The time now is 11:02.

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