35 lines
944 B
C#
35 lines
944 B
C#
using GTANetworkAPI;
|
|
using reallife_gamemode.Server.Entities;
|
|
using reallife_gamemode.Server.Extensions;
|
|
using reallife_gamemode.Server.Services;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
/**
|
|
* @overview Life of German Reallife - Faction Commands (Faction.cs)
|
|
* @author VegaZ, hydrant
|
|
* @copyright (c) 2008 - 2018 Life of German
|
|
*/
|
|
|
|
namespace reallife_gamemode.Server.Commands
|
|
{
|
|
class Faction : Script
|
|
{
|
|
[Command("f", "~m~Benutzung: ~s~/f [Nachricht]", GreedyArg = true)]
|
|
public void CmdFactionF(Client player, string message)
|
|
{
|
|
User u = player.GetUser();
|
|
if(u.Faction == null)
|
|
{
|
|
ChatService.NotAuthorized(player);
|
|
return;
|
|
}
|
|
|
|
string broadcastMessage = "** " + player.Name + ": " + message + " )) **";
|
|
|
|
ChatService.BroadcastFaction(broadcastMessage, u.Faction);
|
|
}
|
|
}
|
|
}
|