AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Maps give AK, when You are in special room (https://forums.alliedmods.net/showthread.php?t=140530)

FiFiX 10-13-2010 12:02

Maps give AK, when You are in special room
 
So, there is map deathrun_darkside and on the end of it, if ct will come into gun room, server gives gim AK, if he will spam dropping(serwer is always giving ak, no matter how many) server dies :( How to prevent this?
The best way is to by plugin remove that zone, where players is getting AK, but how?

ARES[ro] 10-13-2010 12:55

Re: Maps give AK, when You are in special room
 
R u using prethink?i can better help if u post the function where it gives guns.

FiFiX 10-13-2010 14:08

Re: Maps give AK, when You are in special room
 
It is coded in map.

ARES[ro] 10-13-2010 15:26

Re: Maps give AK, when You are in special room
 
ohh then yeah u need hardcoded plugin where it finds the entity with the specific keyvalues like targetname target or classname and remove it or also u can change the target keyvalue so it doesnt trigger the info_equip thing
u need to find that in the map use bsp viewer a tool that can be found on fps banana

FiFiX 10-13-2010 16:12

Re: Maps give AK, when You are in special room
 
So classname is:
game_player_equip

And what should I do to disable that by using plugin?

EDIT:
It would be something like that:
Code:

remove_entity( find_ent_by_class( -1, "game_player_equip") );
On plugin init in specified map?

EDIT2:
on the map, there are two game_player_equip entities... How to remove that with AK, or both?


SLOVED:
use while condition ;d


All times are GMT -4. The time now is 10:28.

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