 |
Gmod 10 |
|
 |
 |
Zexon |
welcome to Zexon
A Garry's mod 10 website
|
 |
 |
|
|
 |
=> Not registered yet?
Garrys Mod Fourms - Sniper scope code pro
Zexon (13 posts so far) | | 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:
Total topics: 935 Total posts: 972 Total users: 7 Online now (registered users): Nobody 
|
Today, there have been 7 visitors (12 hits) on this page! |
|
 |
|
Zexon |
Zexon makes maps and lua
|
 |
 |
|