26.06.2017, 21:45
Okay, next problem. I have my player class (player.cs), and when I attempt to execute this command, it returns with "unknown command".
Edit: the command works when I put it in Gamemode.cs, but not in Player.cs
player.cs:
Edit: the command works when I put it in Gamemode.cs, but not in Player.cs
player.cs:
Код:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SampSharp.GameMode;
using SampSharp.GameMode.World;
using SampSharp.GameMode.SAMP;
using SampSharp.GameMode.SAMP.Commands;
namespace RoleplayGM
{
class Player : BasePlayer
{
#region Player Commands
[Command("help")]
public void HelpCommand()
{
SendClientMessage("This is a command called help");
}
#endregion
}
}

