Local function GroupMsg (ply, args ) if args = "" then return "" end local DoSay = function (text ) if text = "" then return end local t = ply:Team ( ) local audience = if t = TEAM_POLICE or t = TEAM_CHIEF or t = TEAM_MAYOR then for k, v in pairs (player.GetAll ( ) ) do local vt = v:Team ( ) if vt = TEAM_POLICE or vt = TEAM_CHIEF or vt = TEAM_MAYOR then table.insert (audience, v ) end end elseif t = TEAM_MOB or t = TEAM_GANG then for k, v in pairs (player.GetAll ( ) ) do local vt = v:Team ( ) if vt = TEAM_MOB or vt = TEAM_GANG then table.insert (audience, v ) end end elseif t = TEAM_HOBO then for k, v in pairs (player.GetAll ( ) ) do local vt = v:Team ( ) if vt = TEAM_HOBO then table.insert (audience, v ) end end end for k, v in pairs (audience ) do local col = team.GetColor (ply:Team ( ) ) Go to DarkRP/gamemode/a, open up your editors find box, and put in /g. Here I'm going to show you how you can create your own group chats, or add jobs to the current ones. I'd suggest you back-up your a somewhere before you do this, just in case it doesn't work and you don't know what to change back. Also, this tutorial was created using the DarkRP SVN Revision 596, the code may vary slightly with earlier versions, however the editing of it should be quite similar. NOTE: This tutorial is not a customizable feature of DarkRP, it's a direct edit of the DarkRP code and so you should be VERY careful whilst editing it. Reason for deletion: Not what Garry wants the wiki to be used for See more pages nominated for deletion here. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. This page has been nominated for deletion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |