Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerAdvert( ply, args )
- if args == "" then
- ply:SendLua( string.format( [[notification.AddLegacy( "%s", 1, 5 )
- surface.PlaySound( "buttons/button15.wav" )]], ENEMYCOMMS.failMessage ) )
- elseif team.GetName(ply:Team()) != "Enemy") then
- return ""
- else
- for k,pl in pairs( player.GetAll() ) do
- local senderColor = team.GetColor( ply:Team() )
- DarkRP.talkToPerson( pl, senderColor, ENEMYCOMMS.chatPrefix.." "..ply:Nick(), ENEMYCOMMS.advertTextColor, args, ply )
- end
- return ""
- end
- end
- DarkRP.defineChatCommand( ENEMYCOMMS.chatCommand, playerAdvert )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement