#include a_samp
#include zcmd
new dm1;
new Text:dm1text;
public OnGameModeInit()
{
dm1text = TextDrawCreate(4.000000,435.000000,\"DM: \");
TextDrawFont(dm1text,1);
TextDrawColor(dm1text,0xFFFFFFAA);
TextDrawLetterSize(dm1text,0.599999,1.000000);
TextDrawSetOutline(dm1text,1);
TextDrawSetShadow(dm1text,0);
TextDrawSetProportional(dm1text,1);
TextDrawBackgroundColor(dm1text,0x000000ff);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,dm1text);
return 1;
}
CMD:dm1(playerid, params[])
{
dm1++;
new string[128];
format(string, sizeof(string), \"DM: %d\", dm1);
TextDrawSetString(dm1text, string);
return 1;
}
CMD:dmkilep(playerid, params[])
{
dm1--;
new string[128];
format(string, sizeof(string), \"DM: %d\", dm1);
TextDrawSetString(dm1text, string);
return 1;
}