28.08.2012, 08:53
pawn Код:
CMD:ado(playerid, params[])
{
new action[50];
if(sscanf(params, "s[50]", action)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ado [action]");
if(strlen(action) >= 50) return SendClientMessage(playerid, COLOR_GREY, "The specified message must not be longer than 49 characters in length.");
new string[128], Float:X, Float:Y, Float:Z;
format(string, sizeof(string), "* %s (( %s ))", action, GetPlayerNameEx(playerid));
GetPlayerPos(playerid, X, Y, Z);
CreateDynamic3DTextLabel(string, 0xFFFFFFC8, X, Y, Z, 30.0, playerid);
return 1;
}