Ко всем [color=#0000FF]new
[code]new addnews[37];
В [color=#0000FF]public
[code] if(strcmp(cmd, «/addtext», true) == 0) {
if(PlayerInfo[playerid][pMember] != 2) {
SendClientMessage(playerid,COLOR_GRAD1, «Вы не сотрудник СМИ.»);
return true;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, «ИНФО: /addtext [id щита] [текст]»);
new para1 = strval(tmp);
new texts[1400];
texts = strtok(cmdtext, idx);
adtext(para1, texts);
return true;
}
В [color=#0000FF]public
[code] addnews[0] = CreateDynamicObjectEx(4238, 0, 0, 0, 0.0000000, 0.0000000, 300.0000000, 500.000, 500.000); // Все координаты вставьте самостоятельно
for (new i; i < 37; i++)
{
new string[128];
format(string,sizeof(string),"{FFFFFF}Щит №%d свободен
Здесь может быть ваша
{FF9900}реклама",i);
SetDynamicObjectMaterialText(addnews[i], 0, string, 90, "Impact", 24, 0, -32256, -16777216, 1);
}
В конец мода:
[code] adtext(id,string[]) {
new str[256];
format(str, sizeof(str),»{FFFFFF}№%d
%s»,id,string);
SetDynamicObjectMaterialText(addnews[id],0, str, 90, «Impact», 24, 0, -32256, -16777216, 1);
return true;
}
Автор: неизвестен
Небольшая правка от danilasar (меня)