01.08.2010, 08:34
Quote:
Have you logged in as rcon admin before you perform this command?
"/rcon logon {pass}" |
pawn Код:
dcmd_ann(playerid, params[])
{
if(IsPlayerAdmin(playerid)) {
if (!strlen(params))
{
SendClientMessage(playerid,COLOR_RED2, "USAGE: /ann [text]");
return 1;
}
TextDrawDestroy(Textdraw8);
Textdraw8 = TextDrawCreate(308.000000,200.000000, params);
TextDrawAlignment(Textdraw8,2);
TextDrawBackgroundColor(Textdraw8,0x000000ff);
TextDrawFont(Textdraw8,3);
TextDrawLetterSize(Textdraw8,1.100000,1.899999);
TextDrawSetOutline(Textdraw8,1);
TextDrawSetProportional(Textdraw8,1);
TextDrawSetShadow(Textdraw8,10);
TextDrawShowForAll(Textdraw8);
}
else
{
SendClientMessage(playerid,COLOR_RED2,"Your not an admin");
}
return 1;
}
EDIT: I've added this
pawn Код:
dcmd(ann,4,cmdtext);