AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Restore map state without restart (https://forums.alliedmods.net/showthread.php?t=324661)

instinctpt1 05-23-2020 01:00

Restore map state without restart
 
I am removing map's spawn weapon like awp_india gives players AWP by default with engfunc and finding and removing that entity

PHP Code:

engfuncEngFunc_RemoveEntityengfuncEngFunc_FindEntityByString, -1"classname""player_weaponstrip" ) );
engfuncEngFunc_RemoveEntityengfuncEngFunc_FindEntityByString, -1"classname""game_player_equip" ) ); 

But the thing is i want to restore original map state after sometime with some command without map restart, can anyone suggest how can i do that ? ( Maybe retrieving value of weapons from that entity and provide it again or how )

Edit: Nevermind, doing changes with this entity was not good, did it other way Thanks @Bugsy <3


All times are GMT -4. The time now is 17:14.

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