01.08.2010, 08:26
my friend made me this code
Now when i try to use it ingame it says uknown command
can anyone fix this?
pawn Код:
dcmd_ann2(playerid, params[])
{
if(IsPlayerAdmin(playerid)) {
if (!strlen(params))
{
SendClientMessage(playerid,COLOR_RED2, "USAGE: /text [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);
}
return 1;
}
Now when i try to use it ingame it says uknown command
can anyone fix this?