[CM]ЧитерокБарыга |
Дата: Четверг, 17.03.2016, 14:21 | Сообщение # 1
|
Боец
Сообщений: 178
Статус: Offline
|
Доброго времени суток. Решил выполнить систему "Рекламных щитов".
1. Создаём переменную new:
2. Теперь добавим команду в паблик OnPlayerCommandText
Код CMD:addtext(playerid,params[]) { if(pInfo[playerid][pLeader] != 10) return true; if(sscanf(params, "is[128]", params[0], params[1])) return SendClientMessageEx(playerid, COLOR_GRAD1, "[Подсказка] Введите /addtext [id] [Текст]"); adtext(params[0],params[1]); return true; }
3. В самый конец мода добавляем код:
Код adtext(id,string[]) { new str[256]; format(str, sizeof(str),"{FFFFFF}№%d\n%s",id,string); SetDynamicObjectMaterialText(addtext[id],0, str, 90, "Impact", 24, 0, -32256, -16777216, 1); return true; }
4.Теперь ищем паблик OnGameModeInIt
Код addtext[0] = CreateDynamicObjectEx(4238,1538.5000000,-1609.8000488,26.0000000,0.0000000,0.0000000,300.0000000,500.000,500.000); addtext[1] = CreateDynamicObjectEx(7910,1415.3000488,-1719.9000244,33.7999992,0.0000000,0.0000000,137.5000000,500.000,500.000); addtext[2] = CreateDynamicObjectEx(7910,1716.4000244,-782.2000122,73.5999985,0.0000000,0.0000000,346.2470703,500.000,500.000); addtext[3] = CreateDynamicObjectEx(7910,1623.0999756,820.7000122,27.5000000,0.0000000,0.0000000,238.0000000,500.000,500.000); addtext[4] = CreateDynamicObjectEx(4238,1786.5000000,1476.0000000,26.1000004,0.0000000,0.0000000,32.0000000,500.000,500.000); addtext[5] = CreateDynamicObjectEx(4238,356.3999939,-1718.0999756,26.6000004,0.0000000,0.0000000,300.0000000,500.000,500.000); addtext[6] = CreateDynamicObjectEx(7910,1497.0999756,-945.0000000,54.0999985,0.0000000,0.0000000,112.9980774,500.000,500.000); addtext[7] = CreateDynamicObjectEx(7910,1716.6999512,-778.2999878,73.5999985,0.0000000,0.0000000,180.7500000,500.000,500.000); addtext[8] = CreateDynamicObjectEx(7910,1777.5000000,888.0000000,29.8999996,0.0000000,0.0000000,127.7478027,500.000,500.000); addtext[9] = CreateDynamicObjectEx(7910,1854.5999756,-1487.6999512,25.7999992,0.0000000,0.0000000,180.0000000,500.000,500.000); addtext[10] = CreateDynamicObjectEx(4238,1353.9000244,-1713.5999756,26.0000000,2.0000000,358.0000000,120.0000000,500.000,500.000); addtext[11] = CreateDynamicObjectEx(4238,734.5000000,-1102.1999512,33.3999977,0.0000000,0.0000000,180.2500000,500.000,500.000); addtext[12] = CreateDynamicObjectEx(7910,1242.9000244,1089.8000488,27.6000004,0.0000000,0.0000000,159.7451172,500.000,500.000); addtext[13] = CreateDynamicObjectEx(7914,1415.5000000,-1719.6999512,34.0000000,0.0000000,0.0000000,137.9658203,500.000,500.000); addtext[14] = CreateDynamicObjectEx(7910,1408.9000244,-1408.0999756,33.5999985,0.0000000,0.0000000,262.2500000,500.000,500.000); addtext[15] = CreateDynamicObjectEx(7910,1412.5999756,-1724.1999512,33.7999992,0.0000000,0.0000000,331.9993897,500.000,500.000); addtext[16] = CreateDynamicObjectEx(7906,1412.6999512,-1724.1999512,33.5000000,0.0000000,0.0000000,331.9965820,500.000,500.000); addtext[17] = CreateDynamicObjectEx(7910,1863.5000000,-1450.6999512,31.7000008,0.0000000,0.0000000,38.2480469,500.000,500.000); addtext[18] = CreateDynamicObjectEx(7910,1629.6999512,-839.0000000,76.9999847,0.0000000,0.0000000,132.2500000,500.000,500.000); addtext[19] = CreateDynamicObjectEx(7909,219.8000030,-1434.3000488,31.0000000,0.0000000,0.0000000,0.2500000,500.000,500.000); addtext[20] = CreateDynamicObjectEx(4238,704.0000000,-1115.5999756,32.2000008,0.0000000,0.0000000,5.0000000,500.000,500.000); addtext[21] = CreateDynamicObjectEx(7910,1673.0999756,-711.0999756,69.0000000,0.0000000,0.0000000,187.5000000,500.000,500.000); addtext[22] = CreateDynamicObjectEx(7909,2066.8000488,-1790.3000488,28.0000000,0.0000000,0.0000000,90.5000000,500.000,500.000); addtext[23] = CreateDynamicObjectEx(4238,1007.4000244,1314.5999756,30.7999992,0.0000000,0.0000000,29.2500000,500.000,500.000); addtext[24] = CreateDynamicObjectEx(7910,1240.9000244,1086.9000244,27.6000004,0.0000000,0.0000000,323.7500000,500.000,500.000); addtext[25] = CreateDynamicObjectEx(7910,1493.5999756,-946.2999878,54.0000000,0.0000000,0.0000000,278.0000000,500.000,500.000); addtext[26] = CreateDynamicObjectEx(4238,516.5999756,-1725.9000244,31.3999996,0.0000000,0.0000000,112.0000000,500.000,500.000); addtext[27] = CreateDynamicObjectEx(4238,1786.9000244,1075.9000244,26.8000011,0.0000000,0.0000000,31.2500000,500.000,500.000); addtext[28] = CreateDynamicObjectEx(4238,1805.0999756,-1691.5000000,30.7999992,0.0000000,0.0000000,175.2500000,500.000,500.000); addtext[29] = CreateDynamicObjectEx(4238,597.7000122,-1744.4000244,33.2000008,0.0000000,0.0000000,290.0000000,500.000,500.000); addtext[30] = CreateDynamicObjectEx(7910,1775.0000000,885.2999878,29.9000015,0.0000000,0.0000000,324.0000000,500.000,500.000); addtext[31] = CreateDynamicObjectEx(7909,1963.8000488,-1522.6999512,24.6000004,0.0000000,0.0000000,90.2500000,500.000,500.000); addtext[32] = CreateDynamicObjectEx(7910,1628.6999512,-841.9000244,76.9999847,0.0000000,0.0000000,326.9979248,500.000,500.000); addtext[33] = CreateDynamicObjectEx(7910,1861.5999756,-1448.0000000,31.7000008,0.0000000,0.0000000,233.0000000,500.000,500.000); addtext[34] = CreateDynamicObjectEx(4238,1565.3000488,-1722.5000000,31.1967049,0.0000000,0.0000000,34.7500000,500.000,500.000); addtext[35] = CreateDynamicObjectEx(7910,1627.0999756,819.5000000,27.5000000,0.0000000,0.0000000,73.4968262,500.000,500.000); addtext[36] = CreateDynamicObjectEx(7910,1673.5000000,-714.0999756,68.9999695,0.0000000,0.0000000,22.2481690,500.000,500.000); for (new i; i < 37; i++) { new string[128]; format(string,sizeof(string),"{FFFFFF}№%d\nЗдесь может быть ваша\n{FF9900}реклама",i); SetDynamicObjectMaterialText(addtext[i], 0, string, 90, "Impact", 24, 0, -32256, -16777216, 1); }
Скриншот: *click*
Спасибо за прочтение темы. Надеюсь я вам помог. Удачи :3
Продажа виртов - cheat-master.ru/forum/111-675127-1
Сообщение отредактировал [CM]ЧитерокБарыга - Четверг, 17.03.2016, 14:24 |
|
|
|