Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Disable Weps in Bank*/
- function onScriptLoad()
- {
- bankkill <- NewTimer("disableweps", 500, 0 );
- bankkill.Paused = true;
- bank_timer <- false;
- }
- function onPlayerJoin( player )
- {
- if(bank_timer == false)
- {
- bankkill.Paused = false;
- bank_timer = true;
- }
- }
- function onPlayerPart( player, reason )
- {
- if ( GetPlayers()-1 == 0 )
- {
- bankkill.Paused= true;
- bank_timer = false;
- }
- }
- /*Functions*/
- function disableweps()
- {
- for ( local i = 0; i < GetMaxPlayers(); i++ )
- {
- local plr = FindPlayer( i );
- if ( plr )
- {
- if ( plr.IsSpawned )
- {
- if ( InPoly( plr.Pos.x, plr.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 ) )
- {
- plr.CanAttack = false;;
- }
- else plr.CanAttack = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement