Gmod 10

Zexon
Garrys Mod Fourms
Gmod Links
Gmod Polls
Zexon's Gallery
Downloads & code
Zexon,s Lua Downloads
Zexon

welcome to Zexon A Garry's mod 10 website
=> Not registered yet?

Garrys Mod Fourms - Sniper scope code pro

You are here:
Garrys Mod Fourms => Lua Codes => Sniper scope code pro

<-Back

 1 

Continue->


Zexon
(13 posts so far)
06/17/2007 9:10pm (UTC)[quote]
if you know what to do with this you should use this
........................................................................



/*---------------------------------------------------------
SecondaryAttack
---------------------------------------------------------*/
function SWEP:SecondaryAttack()

if(ScopeLevel == 0) then

if(SERVER) then
self.Owner:SetFOV( 45, 0 )
end

ScopeLevel = 1

else if(ScopeLevel == 1) then

if(SERVER) then
self.Owner:SetFOV( 25, 0 )
end

ScopeLevel = 2

else

if(SERVER) then
self.Owner:SetFOV( 0, 0 )
end

ScopeLevel = 0

end
end

end

function SWEP:Holster()
self.Owner:SetFOV( 0, 0 )
ScopeLevel = 0

return true
end


Answer:

Nickname:

 Text color:

 Font size:
Close tags



Total topics: 935
Total posts: 972
Total users: 7
Online now (registered users): Nobody crying smiley
Today, there have been 7 visitors (12 hits) on this page!
Zexon

Zexon makes maps and lua

This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free