hello. I need to Points were given 2 team how to do it?
[CODE]if PS.Config.PointsOverTime then
timer.Create('PS_PointsOverTime_' .. self:UniqueID(), PS.Config.PointsOverTimeDelay * 60, 0, function()
if !IsValid(self) then return end
self:PS_GivePoints(PS.Config.PointsOverTimeAmount)
self:PS_Notify("give you ", PS.Config.PointsOverTimeAmount, " ", PS.Config.PointsName, " points")
end)
end[/CODE]
why would you do this?
does ps not automatically do this?
I need to not issued Points spectators
this is for TTT?
[code]
if self:IsSpectator() then return end
[/code]
And if we are given a code?
[code]function GM:PlayerSay( ply, text, team)
if ply:Team() == 2 && ply:Alive() && self:GetRound() != 0 then
local ct = ChatText()
local col = ply:GetPlayerColor()
ct:Add(ply:GetBystanderName(), Color(col.x * 255, col.y * 255, col.z * 255))
ct:Add(": " .. text, color_white)
for k, ply2 in pairs(player.GetAll()) do
local can = hook.Call("PlayerCanSeePlayersChat", GAMEMODE, text, team, ply2, ply)
if can then
ct:Send(ply2)
end
end
-- ct:SendAll()
return false
end
return true
end[/code]
[QUOTE=giraff;47081061]And if we are given a code?
[code]function GM:PlayerSay( ply, text, team)
if ply:Team() == 2 && ply:Alive() && self:GetRound() != 0 then
local ct = ChatText()
local col = ply:GetPlayerColor()
ct:Add(ply:GetBystanderName(), Color(col.x * 255, col.y * 255, col.z * 255))
ct:Add(": " .. text, color_white)
for k, ply2 in pairs(player.GetAll()) do
local can = hook.Call("PlayerCanSeePlayersChat", GAMEMODE, text, team, ply2, ply)
if can then
ct:Send(ply2)
end
end
-- ct:SendAll()
return false
end
return true
end[/code][/QUOTE]
What are you talking about? This has nothing to do with the OP.
[QUOTE=giraff;47079901]hello. I need to Points were given 2 team how to do it?
[CODE]if PS.Config.PointsOverTime then
timer.Create('PS_PointsOverTime_' .. self:UniqueID(), PS.Config.PointsOverTimeDelay * 60, 0, function()
if !IsValid(self) then return end
self:PS_GivePoints(PS.Config.PointsOverTimeAmount)
self:PS_Notify("give you ", PS.Config.PointsOverTimeAmount, " ", PS.Config.PointsName, " points")
end)
end[/CODE][/QUOTE]
[IMG]http://oi54.tinypic.com/1zqvqzk.jpg[/IMG]
that cat
[highlight](User was permabanned for this post ("That Cat" - OvB))[/highlight]
[QUOTE=code_gs;47081803]What are you talking about? This has nothing to do with the OP.[/QUOTE]
I just need to prohibit the issuance of points spectators
As Exho said earlier up:
[CODE]
if PS.Config.PointsOverTime then
timer.Create('PS_PointsOverTime_' .. self:UniqueID(), PS.Config.PointsOverTimeDelay * 60, 0, function()
if !IsValid(self) then return end
if self:IsSpectator() then return end
self:PS_GivePoints(PS.Config.PointsOverTimeAmount)
self:PS_Notify("give you ", PS.Config.PointsOverTimeAmount, " ", PS.Config.PointsName, " points")
end)
end
[/CODE]
i think he is using google translate..
Sorry, you need to Log In to post a reply to this thread.