Open GoogleCodeExporter opened 9 years ago
1) http://wiki.garrysmod.com/?title=DarkRP:Group_Chat
A little tutorial I wrote on group chats.
2) By default the Chief can set the agenda as well as the mayor.
3) DarkRP/gamemode/main.lua, around line 1918 you should see the lockdown and
unlockdown functions, replace them with:
local function Lockdown(ply)
if not lstat and (ply:Team() == TEAM_MAYOR or ply:Team() == TEAM_CHIEF) then
for k,v in pairs(player.GetAll()) do
v:ConCommand("play npc/overwatch/cityvoice/f_confirmcivilstatus_1_spkr.wav\n")
end
lstat = true
PrintMessageAll(HUD_PRINTTALK , LANGUAGE.lockdown_started)
RunConsoleCommand("DarkRP_LockDown", 1)
NotifyAll(4, 3, LANGUAGE.lockdown_started)
end
return ""
end
concommand.Add("rp_lockdown", Lockdown)
AddChatCommand("/lockdown", Lockdown)
function UnLockdown(ply) -- Must be global
if lstat and not wait_lockdown and (ply:Team() == TEAM_MAYOR or ply:Team() == TEAM_CHIEF) then
PrintMessageAll(HUD_PRINTTALK , LANGUAGE.lockdown_ended)
NotifyAll(4, 3, LANGUAGE.lockdown_ended)
wait_lockdown = true
RunConsoleCommand("DarkRP_LockDown", 0)
timer.Create("spamlock", 20, 1, WaitLock, "")
end
return ""
end
concommand.Add("rp_unlockdown", UnLockdown)
AddChatCommand("/unlockdown", UnLockdown)
4. DarkRP/gamemode/main.lua, around line 1668, you should see:
if v:Team() == TEAM_POLICE or v:Team() == TEAM_CHIEF or v == ply then
Simply add your custom teams TEAM_ to the if function, example:
if v:Team() == TEAM_POLICE or v:Team() == TEAM_CHIEF or v:Team() == TEAM_MYTEAM
or v == ply then
Of course FPtje may decide to add these as commands, but for now here's a
relatively simple edit way of doing it.
Original comment by ch...@watersideway.plus.com
on 14 Jul 2010 at 6:53
Thanks chris.
Original comment by fpeijnen...@gmail.com
on 15 Jul 2010 at 8:44
Thanks! Works perfectly :)
Original comment by rambo...@gmail.com
on 15 Jul 2010 at 10:12
Original issue reported on code.google.com by
rambo...@gmail.com
on 14 Jul 2010 at 4:38