- Initiateur de la discussion
NoaGamingFR
Wait :)
- Messages
- 3 650
- Score réaction
- 625
- Points
- 340
Bonjour, j'ai un petit soucis avec cet addon, je souhaiterais faire que la canette ne tombe pas s'il n'as pas l'argent en question, j'ai réussi pour un truc, mais la canette tombe, son argent ne se retire pas car je l'ai fix, mais je voudrais que la canette ne tombe pas du tout.
(J'ai essayé ceci)
(J'ai essayé ceci)
Code:
if ( SERVER ) then --> bug forum[/B][/FONT][/CENTER][/B][/FONT][/CENTER][/B][/FONT][/CENTER]
[FONT=arial][B][CENTER][FONT=arial][B][CENTER]<-- bug forum --> [ FONT=arial][B][CENTER][FONT=arial][B][CENTER] function ENT:Use( activator, caller ) if ply:canAfford(2) then if self:WorldToLocal(activator:GetEyeTrace().HitPos):WithinAABox(Vector(24.5, -23.3, 70.4), Vector(25,-19.75,74)) and not (self:GetLaunch_Fanta() or self:GetLaunch_Coca() or self:GetLaunch_Orangina() or self:GetLaunch_Pepsi() or self:GetLaunch_Sprite()) then self:SetLaunch_Fanta(true) ply:ChatPrint("nice") elseif self:WorldToLocal(activator:GetEyeTrace().HitPos):WithinAABox(Vector(24.5, -23.3, 66.4), Vector(25,-19.75,70)) and not (self:GetLaunch_Fanta() or self:GetLaunch_Coca() or self:GetLaunch_Orangina() or self:GetLaunch_Pepsi() or self:GetLaunch_Sprite()) then self:SetLaunch_Pepsi(true) elseif self:WorldToLocal(activator:GetEyeTrace().HitPos):WithinAABox(Vector(24.5, -23.3, 62.4), Vector(25,-19.75,66)) and not (self:GetLaunch_Fanta() or self:GetLaunch_Coca() or self:GetLaunch_Orangina() or self:GetLaunch_Pepsi() or self:GetLaunch_Sprite()) then self:SetLaunch_Coca(true) elseif self:WorldToLocal(activator:GetEyeTrace().HitPos):WithinAABox(Vector(24.5, -23.3, 58.4), Vector(25,-19.75,62)) and not (self:GetLaunch_Fanta() or self:GetLaunch_Coca() or self:GetLaunch_Orangina() or self:GetLaunch_Pepsi() or self:GetLaunch_Sprite()) then self:SetLaunch_Orangina(true) elseif self:WorldToLocal(activator:GetEyeTrace().HitPos):WithinAABox(Vector(24.5, -23.3, 54.4), Vector(25,-19.75,58)) and not (self:GetLaunch_Fanta() or self:GetLaunch_Coca() or self:GetLaunch_Orangina() or self:GetLaunch_Pepsi() or self:GetLaunch_Sprite()) then self:SetLaunch_Sprite(true) else return end end
end
local Toogle = false
function ENT:Draw()
En gros, si on clique et que l'on as pas l'argent, rien ne s'effectue mise à part une notification ^^'
Merci à tous pour votre future aide, et votre visite