- Регистрация
- 27 Авг 2015
- Сообщения
- 357
- Лучшие ответы
- 0
- Репутация
- 188
Система телефона TD (Без сохранения в БД)
Внимание: система не имеет сохранения и загрузку контактов и сообщений, для кого надо сам допилит. И так же с GPS,RADIO, и вызовом(ибо у всех в моде свое и лучше выдать такое, чтобы каждый смог подстроить под свое, лично моё мнение)
Все писалось мной с нуля. Автор я(
В public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
В public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
В public OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
В public OnPlayerClickTextDraw(playerid, Text:clickedid)
public OnPlayerConnect(playerid)
В public OnGameModeInit()
Так же на счет FixText:
МОДЕРАТОРАМ: Если вы решите удалить тему из-за видео(якобы реклама), подумайте о слитых модах, где кучами закиданы видеообзоры на мод!
Прощу дать адекватную критику, а так же сказать, где я ошибся, где можно было сделать получше и так далее.
Здравствуйте! Делал я, значит, системы для своей студии и вот думаю, что столько уже создал, а ни чем не поделился.
Вот решил выложить последнюю работу.
Вот решил выложить последнюю работу.
Внимание: система не имеет сохранения и загрузку контактов и сообщений, для кого надо сам допилит. И так же с GPS,RADIO, и вызовом(ибо у всех в моде свое и лучше выдать такое, чтобы каждый смог подстроить под свое, лично моё мнение)
Все писалось мной с нуля. Автор я(
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
). Кроме системы селфи, конечно!Думаю можно приступать
PHP:
#include <a_samp>
#include <a_players>
#include <sscanf2>
#include <foreach>
#define publics:%0(%1) forward %0(%1); public %0(%1)
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
const Float: Radius = 1.4; //do not edit this
const Float: Speed = 3.0; //do not edit this
const Float: Height = 1.0; // do not edit this
static BoxIDS[8] = {
1,
7,
15,
17,
21,
23,
25,
27
};
static PhoneCOLOR[4][32] = {
"{222222}По умолчанию",
"{A52A2A}Brown",
"{E75480}Розовый",
"{045495}Синий"
};
new PlayerText:PhoneInfo[29];
new Text:PhoneTD[12];
new Number[MAX_PLAYERS];
enum SMSINFO
{
sMessage[144],
sNumber,
Date[32],
Status
}
new sInfo[MAX_PLAYERS][10][SMSINFO];
enum Contacts
{
cName[24],
cNumber
}
new cInfo[MAX_PLAYERS][10][Contacts];
В public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
PHP:
if(PRESSED(KEY_ANALOG_LEFT))
{
if(GetPVarInt(playerid,"takingselfie"))
{
new Float:PLAYER_POS[3];
GetPlayerPos(playerid,PLAYER_POS[0],PLAYER_POS[1],PLAYER_POS[2]);
SetPVarFloat(playerid,"lX",PLAYER_POS[0]);
SetPVarFloat(playerid,"lY",PLAYER_POS[1]);
SetPVarFloat(playerid,"lZ",PLAYER_POS[2]);
if(GetPVarFloat(playerid,"Degree") >= 360) DeletePVar(playerid,"Degree");
SetPVarFloat(playerid,"Degree", GetPVarFloat(playerid,"Degree") - Speed);
PLAYER_POS[0] = GetPVarFloat(playerid,"lX") + Radius * floatcos(GetPVarFloat(playerid,"Degree"), degrees);
PLAYER_POS[1] = GetPVarFloat(playerid,"lY") + Radius * floatsin(GetPVarFloat(playerid,"Degree"), degrees);
SetPlayerCameraPos(playerid, PLAYER_POS[0], PLAYER_POS[1], GetPVarFloat(playerid,"lZ") + Height);
SetPlayerCameraLookAt(playerid, GetPVarFloat(playerid,"lX"), GetPVarFloat(playerid,"lY"), GetPVarFloat(playerid,"lZ")+1);
SetPlayerFacingAngle(playerid, GetPVarFloat(playerid,"Degree") - 90.0);
}
}
else if(PRESSED(KEY_ANALOG_RIGHT))
{
if(GetPVarInt(playerid,"takingselfie"))
{
new Float:PLAYER_POS[3];
GetPlayerPos(playerid,PLAYER_POS[0],PLAYER_POS[1],PLAYER_POS[2]);
SetPVarFloat(playerid,"lX",PLAYER_POS[0]);
SetPVarFloat(playerid,"lY",PLAYER_POS[1]);
SetPVarFloat(playerid,"lZ",PLAYER_POS[2]);
if(GetPVarFloat(playerid,"Degree") >= 360) DeletePVar(playerid,"Degree");
SetPVarFloat(playerid,"Degree", GetPVarFloat(playerid,"Degree") + Speed);
PLAYER_POS[0] = GetPVarFloat(playerid,"lX") + Radius * floatcos(GetPVarFloat(playerid,"Degree"), degrees);
PLAYER_POS[1] = GetPVarFloat(playerid,"lY") + Radius * floatsin(GetPVarFloat(playerid,"Degree"), degrees);
SetPlayerCameraPos(playerid, PLAYER_POS[0], PLAYER_POS[1], GetPVarFloat(playerid,"lZ") + Height);
SetPlayerCameraLookAt(playerid, GetPVarFloat(playerid,"lX"), GetPVarFloat(playerid,"lY"), GetPVarFloat(playerid,"lZ")+1);
SetPlayerFacingAngle(playerid, GetPVarFloat(playerid,"Degree") - 90.0);
}
}
PHP:
case 9487:
{
if(!response) return 1;
new sms_stringer[128];
format(sms_stringer,sizeof(sms_stringer),"%d",strval(inputtext));
//Сюда пишите свою команду вызова
}
case 9488:
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
new sms_stringer[128],stringer[560];
new StatusID[2][32] = {
"{A52A2A}Не прочитано",
"Прочитано"};
strcat(stringer, "{E75480}№\t\t{FFFFFF}Отправитель\t\t{FFFFFF}Дата отправления\t\t{FFFFFF}Статус\n");
for(new b = 0; b < 10; b++) // Цикл.
{
if(sInfo[playerid][b][sNumber] != 0) format(sms_stringer,sizeof(sms_stringer),"{E75480}%i.{FFFFFF}\t\t%d\t\t%s\t\t%s\n",b,sInfo[playerid][b][sNumber],sInfo[playerid][b][Date],StatusID[sInfo[playerid][b][Status]]);
else format(sms_stringer,sizeof(sms_stringer),"{E75480}%i.{FFFFFF}\t\t-\t\t-\t\t-\n",b);
strcat(stringer,sms_stringer);
}
ShowPlayerDialog(playerid,9489,DIALOG_STYLE_TABLIS T_HEADERS,"{E75480}Список сообщений",stringer,"Посмотреть","Закрыть");
return 1;
}
case 1:
{
ShowPlayerDialog(playerid, 9491, DIALOG_STYLE_INPUT, "{E75480}Набор номера", "{E75480}Пожалуйста{FFFFFF}, введите номер на который хотите отправить сообщение", "Выбрать", "Отмена");
}
}
}
case 9489:
{
if(!response) return 1;
if(sInfo[playerid][listitem][sNumber] == 0) return 1;
sInfo[playerid][listitem][Status] = 1; //Переводим в прочитонные
new sms_string[128];
strcat(sms_string, "{E75480}Сообщение: {FFFFFF}");
strcat(sms_string, sInfo[playerid][listitem][sMessage]);
strcat(sms_string, "\n\n{E75480}Дата: {FFFFFF}");
strcat(sms_string, sInfo[playerid][listitem][Date]);
ShowPlayerDialog(playerid, 9490, DIALOG_STYLE_MSGBOX, "{E75480}Сообщение",sms_string, "Удалить", "Отмена");
new smscol = 0;
for(new td; td < 10; td++)
{
if(sInfo[playerid][td][sNumber] != 0 && sInfo[playerid][td][Status] == 0) smscol++;
}
format(sms_string,sizeof(sms_string),"%d", smscol);
PlayerTextDrawSetString(playerid,PhoneInfo[13],sms_string);
SetPVarInt(playerid,"SmsID",listitem);
}
case 9490:
{
if(!response) return 1;
DelSMS(playerid,GetPVarInt(playerid,"SmsID"));
DeletePVar(playerid,"SmsID");
}
case 9491:
{
if(!response) return 1;
new smsid = -1;
foreach(new i : Player)
{
if(!IsPlayerConnected(i)) continue;
if(strval(inputtext) != Number[i]) continue;
smsid = i;
}
if(smsid == -1) return SendClientMessage(playerid,-1,"Номер, который вы ввели, не найден!");
SetPVarInt(playerid,"NumberID",smsid);
SetPVarInt(playerid,"NumberSMS",strval(inputtext));
ShowPlayerDialog(playerid, 9492, DIALOG_STYLE_INPUT, "{E75480}Набор сообщения", "{E75480}Пожалуйста{FFFFFF}, введите сообщение которое хотите отправить контакту", "Выбрать", "Отмена");
}
case 9492:
{
if(!response) return 1;
if(0 > strlen(inputtext) > 48) return ShowPlayerDialog(playerid, 9492, DIALOG_STYLE_INPUT, "{E75480}Набор сообщения", "{E75480}Пожалуйста{FFFFFF}, введите сообщение которое хотите отправить контакту", "Выбрать", "Отмена");
SendSMS(GetPVarInt(playerid,"NumberID"),inputtext,GetPVarInt(playerid,"NumberSMS"));
}
case 9500:
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
switch(GetPVarInt(playerid,"ColorPH"))
{
case 0: SetPVarInt(playerid,"ColorPH",1);
case 1: SetPVarInt(playerid,"ColorPH",2);
case 2: SetPVarInt(playerid,"ColorPH",3);
case 3: SetPVarInt(playerid,"ColorPH",0);
}
ChangeC(playerid);
}
case 1: SetPVarInt(playerid,"PhoneON", (GetPVarInt(playerid,"PhoneON")) ? (0):(1));
}
new string[128];
format(string,sizeof(string),"1. Цвет интерфейса: %s\n2. Статус телефона: {E75480}%s",PhoneCOLOR[GetPVarInt(playerid,"ColorPH")],(GetPVarInt(playerid,"PhoneON")) ? ("Отключен"):("Включен"));
ShowPlayerDialog(playerid, 9500, DIALOG_STYLE_LIST, "{E75480}Настройки", string, "Выбрать", "Отмена");
}
case 9600:
{
if(!response) return 1;
ShowPlayerDialog(playerid, 9601, DIALOG_STYLE_LIST, "{E75480}Управление слотом", "{FFFFFF}1. Изменить номер\n2. Изменить имя\n3. Очистить слот\n4. Отправить СМС\n5. Позвонить", "Выбрать", "Отмена");
SetPVarInt(playerid,"ConID",listitem);
}
case 9601:
{
if(!response) return 1;
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 9602, DIALOG_STYLE_INPUT, "{E75480}Смена номера", "{E75480}Пожалуйста{FFFFFF}, введите номер, который хотите поставить:", "Выбрать", "Отмена");
case 1: ShowPlayerDialog(playerid, 9603, DIALOG_STYLE_INPUT, "{E75480}Смена имени", "{E75480}Пожалуйста{FFFFFF}, введите имя, которое хотите поставить:", "Выбрать", "Отмена");
case 2:
{
cInfo[playerid][GetPVarInt(playerid,"ConID")][cNumber] = 0;
strmid(cInfo[playerid][GetPVarInt(playerid,"ConID")][cName], "-", 0, strlen("-"), 24);
SendClientMessage(playerid,-1,"Слот с контактом очищен!");
}
case 3: ShowPlayerDialog(playerid, 9492, DIALOG_STYLE_INPUT, "{E75480}Набор сообщения", "{FF8600}Пожалуйста{FFFFFF}, введите сообщение которое хотите отправить контакту", "Выбрать", "Отмена");
case 4: { }
}
}
case 9603:
{
if(0 > strlen(inputtext) > 24) return ShowPlayerDialog(playerid, 9603, DIALOG_STYLE_INPUT, "{E75480}Смена имени", "{E75480}Пожалуйста{FFFFFF}, введите имя, которое хотите поставить:", "Выбрать", "Отмена");
strmid(cInfo[playerid][GetPVarInt(playerid,"ConID")][cName], inputtext, 0, strlen(inputtext), 24);
SendClientMessage(playerid,-1,"Контакт изменён!");
}
case 9602:
{
cInfo[playerid][GetPVarInt(playerid,"ConID")][cNumber] = strval(inputtext);
SendClientMessage(playerid,-1,"Номер изменён!");
}
PHP:
stock ChangeC(playerid)
{
for(new td; td < 8; td++)
{
if(GetPVarInt(playerid,"ColorPH") == 0) PlayerTextDrawColor(playerid, PhoneInfo[BoxIDS[td]], 572662527);
if(GetPVarInt(playerid,"ColorPH") == 1) PlayerTextDrawColor(playerid, PhoneInfo[BoxIDS[td]], 0xA52A2AFF);
if(GetPVarInt(playerid,"ColorPH") == 2) PlayerTextDrawColor(playerid, PhoneInfo[BoxIDS[td]], 0xE75480FF);
if(GetPVarInt(playerid,"ColorPH") == 3) PlayerTextDrawColor(playerid, PhoneInfo[BoxIDS[td]], 0x045495FF);
}
HidePhone(playerid);
ShowPhone(playerid);
return 1;
}
stock DelSMS(playerid,id)
{
strmid(sInfo[playerid][id][sMessage], "-", 0, strlen("-"), 24);
strmid(sInfo[playerid][id][Date], "-", 0, strlen("-"), 24);
sInfo[playerid][id][sNumber] = 0;
sInfo[playerid][id][Status] = 0;
return 1;
}
stock SendSMS(playerid,msg[],number)
{
new string[20],hour, minuite, second, saturday = 1310155200, w = gettime(), day_week;
gettime(hour, minuite, second);
while(w - saturday > 60 * 60 * 24)
{
w -= 60 * 60 * 24;
day_week ++;
}
while(day_week >= 7) day_week -= 7;
static const Names_Days[7][12] = {"суббота","воскресенье","понедельник","вторник","среда","четверг","пятница"};
format(string, sizeof(string), "%s %02d:%02d", Names_Days[day_week], hour, minuite);
for(new id = 9; id > 0; id--)
{
format(sInfo[playerid][id][sMessage],128,sInfo[playerid][id-1][sMessage]);
format(sInfo[playerid][id][Date],128,sInfo[playerid][id-1][Date]);
sInfo[playerid][id][sNumber] = sInfo[playerid][id-1][sNumber];
sInfo[playerid][id][Status] = sInfo[playerid][id-1][Status];
}
format(sInfo[playerid][0][sMessage],128,msg);
format(sInfo[playerid][0][Date],128,string);
sInfo[playerid][0][sNumber] = number;
sInfo[playerid][0][Status] = 0;
SendClientMessage(playerid,-1,"{E75480}[i] Вам пришло новое сообщение!");
if(GetPVarInt(playerid,"Phone") == 0) return 1;
new smscol = 0;
for(new td; td < 10; td++)
{
if(sInfo[playerid][td][sNumber] != 0 && sInfo[playerid][td][Status] == 0) smscol++;
}
format(string,sizeof(string),"%d", smscol);
PlayerTextDrawSetString(playerid,PhoneInfo[13],string);
return 1;
}
stock ShowPhone(playerid)
{
new smscol = 0;
for(new td; td < 10; td++)
{
if(sInfo[playerid][td][sNumber] != 0 && sInfo[playerid][td][Status] == 0) smscol++;
}
new string[20],hour, minuite, second;
gettime(hour, minuite, second);
format(string,sizeof(string),"%02d:%02d", hour, minuite);
PlayerTextDrawSetString(playerid,PhoneInfo[2],string);
format(string,sizeof(string),"%d", smscol);
PlayerTextDrawSetString(playerid,PhoneInfo[13],string);
for(new td; td < sizeof(PhoneInfo); td++) PlayerTextDrawShow(playerid,PhoneInfo[td]);
for(new td; td < sizeof(PhoneTD); td++) TextDrawShowForPlayer(playerid,PhoneTD[td]);
SetPVarInt(playerid,"Phone",2);
}
stock HidePhone(playerid)
{
for(new td; td < sizeof(PhoneTD); td++) TextDrawHideForPlayer(playerid,PhoneTD[td]);
for(new td; td < sizeof(PhoneInfo); td++) PlayerTextDrawHide(playerid,PhoneInfo[td]);
DeletePVar(playerid,"Phone");
}
В public OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
PHP:
if(playertextid == PhoneInfo[7]) // SMS
{
ShowPlayerDialog(playerid, 9488, DIALOG_STYLE_LIST, "{E75480}Сообщения", "{E75480}1.{FFFFFF} Посмотреть сообщения\n{E75480}2.{FFFFFF} Отправить сообщение", "Выбрать", "Отмена");
}
if(playertextid == PhoneInfo[15]) // CALL
{
ShowPlayerDialog(playerid, 9487, DIALOG_STYLE_INPUT, "{E75480}Набор номера", "{E75480}Пожалуйста{FFFFFF}, введите номер на который хотите позвонить", "Выбрать", "Отмена");
}
if(playertextid == PhoneInfo[17]) //
{
if(!GetPVarInt(playerid,"takingselfie"))
{
new Float:PLAYER_POS[3];
GetPlayerPos(playerid,PLAYER_POS[0],PLAYER_POS[1],PLAYER_POS[2]);
SetPVarFloat(playerid,"lX",PLAYER_POS[0]);
SetPVarFloat(playerid,"lY",PLAYER_POS[1]);
SetPVarFloat(playerid,"lZ",PLAYER_POS[2]);
if(GetPVarFloat(playerid,"Degree") >= 360) DeletePVar(playerid,"Degree");
SetPVarFloat(playerid,"Degree", GetPVarFloat(playerid,"Degree") + Speed);
PLAYER_POS[0] = GetPVarFloat(playerid,"lX") + Radius * floatcos(GetPVarFloat(playerid,"Degree"), degrees);
PLAYER_POS[1] = GetPVarFloat(playerid,"lY") + Radius * floatsin(GetPVarFloat(playerid,"Degree"), degrees);
SetPlayerCameraPos(playerid, PLAYER_POS[0], PLAYER_POS[1], GetPVarFloat(playerid,"lZ") + Height);
SetPlayerCameraLookAt(playerid, GetPVarFloat(playerid,"lX"), GetPVarFloat(playerid,"lY"), GetPVarFloat(playerid,"lZ")+1);
SetPlayerFacingAngle(playerid, GetPVarFloat(playerid,"Degree") - 90.0);
SetPVarInt(playerid,"takingselfie",true);
SendClientMessage(playerid,0xE75480FF,"Используйте {FFFFFF}NUM 4{E75480} или {FFFFFF}NUM 8{E75480} чтобы двигать камеру");
SendClientMessage(playerid,-1,"F8{E75480} - чтобы сделать скриншот, {FFFFFF}для выхода нажмите на камеру в смартфоне!");
ApplyAnimation(playerid, "PED", "gang_gunstand", 4.1, 1, 1, 1, 1, 1, 1);
TogglePlayerControllable(playerid,0);
HidePhone(playerid);
CancelSelectTextDraw(playerid);
}
else
{
TogglePlayerControllable(playerid,1);
SetCameraBehindPlayer(playerid);
DeletePVar(playerid,"takingselfie");
DeletePVar(playerid,"Degree");
DeletePVar(playerid,"lX");
DeletePVar(playerid,"lY");
DeletePVar(playerid,"lZ");
ApplyAnimation(playerid, "PED", "ATM", 4.1, 0, 1, 1, 0, 1, 1);
}
}
if(playertextid == PhoneInfo[21]) //
{
//Сюда радио свое
}
if(playertextid == PhoneInfo[23]) //
{
//Сюда свой GPS
}
if(playertextid == PhoneInfo[25]) //
{
new string[128];
format(string,sizeof(string),"1. Цвет интерфейса: %s\n2. Статус телефона: {E75480}%s",PhoneCOLOR[GetPVarInt(playerid,"ColorPH")],(GetPVarInt(playerid,"PhoneON")) ? ("Отключен"):("Включен"));
ShowPlayerDialog(playerid, 9500, DIALOG_STYLE_LIST, "{E75480}Настройки", string, "Выбрать", "Отмена");
}
if(playertextid == PhoneInfo[27]) //
{
new sms_stringer[128],stringer[560];
strcat(stringer, "{E75480}№\t\t{FFFFFF}Имя\t\t{FFFFFF}Номер\n");
for(new b = 0; b < 10; b++) // Цикл.
{
if(cInfo[playerid][b][cNumber] != 0) format(sms_stringer,sizeof(sms_stringer),"{E75480}%i.{FFFFFF}\t\t%s\t\t%d\n",b,cInfo[playerid][b][cName],cInfo[playerid][b][cNumber]);
else format(sms_stringer,sizeof(sms_stringer),"{E75480}%i.{FFFFFF}\t\t-\t\t-\n",b);
strcat(stringer,sms_stringer);
}
ShowPlayerDialog(playerid,9600,DIALOG_STYLE_TABLIS T_HEADERS,"{E75480}Список контактов",stringer,"Выбрать","Закрыть");
}
В public OnPlayerClickTextDraw(playerid, Text:clickedid)
PHP:
if(_:clickedid == INVALID_TEXT_DRAW)
{
if(GetPVarInt(playerid,"Phone") > 0)
{
for(new td; td < sizeof(PhoneTD); td++) TextDrawHideForPlayer(playerid,PhoneTD[td]);
for(new td; td < sizeof(PhoneInfo); td++) PlayerTextDrawHide(playerid,PhoneInfo[td]);
DeletePVar(playerid,"Phone");
return 1;
}
}
if(clickedid == PhoneTD[11]) // Кнопка на корпусе
{
if(GetPVarInt(playerid,"Phone") > 1) return 1;
ShowPhone(playerid);
}
PHP:
if(strcmp(cmd,"/phone",true) == 0)
{
if(GetPVarInt(playerid,"Phone") > 0)
{
HidePhone(playerid);
CancelSelectTextDraw(playerid);
return 1;
}
SetPVarInt(playerid,"Phone",1);
for(new td; td < 12; td++) TextDrawShowForPlayer(playerid,PhoneTD[td]);
SelectTextDraw(playerid, 0x43434350);
}
public OnPlayerConnect(playerid)
PHP:
for(new td; td < 10; td++) strmid(cInfo[playerid][td][cName], "-", 0, strlen("-"), 24);
SetPVarInt(playerid,"ColorPH",0);
Number[playerid] = 666666;
PhoneInfo[0] = CreatePlayerTextDraw(playerid, 508.799987, 209.250000, "loadsc9:loadsc9");
PlayerTextDrawLetterSize(playerid, PhoneInfo[0], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[0], 90.330070, 112.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[0], 1);
PlayerTextDrawColor(playerid, PhoneInfo[0], -2139062017);
PlayerTextDrawSetShadow(playerid, PhoneInfo[0], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[0], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[0], 255);
PlayerTextDrawFont(playerid, PhoneInfo[0], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[0], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[0], 0);
PhoneInfo[1] = CreatePlayerTextDraw(playerid, 509.000030, 209.412536, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, PhoneInfo[1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[1], 90.180038, 7.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[1], 1);
PlayerTextDrawColor(playerid, PhoneInfo[1], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[1], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[1], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[1], 255);
PlayerTextDrawFont(playerid, PhoneInfo[1], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[1], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[1], 0);
PhoneInfo[2] = CreatePlayerTextDraw(playerid, 585.000244, 208.824920, "16:12");
PlayerTextDrawLetterSize(playerid, PhoneInfo[2], 0.151996, 0.777499);
PlayerTextDrawAlignment(playerid, PhoneInfo[2], 1);
PlayerTextDrawColor(playerid, PhoneInfo[2], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[2], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[2], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[2], 255);
PlayerTextDrawFont(playerid, PhoneInfo[2], 2);
PlayerTextDrawSetProportional(playerid, PhoneInfo[2], 1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[2], 0);
PhoneInfo[3] = CreatePlayerTextDraw(playerid, 580.000244, 210.612396, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, PhoneInfo[3], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[3], 4.000000, 5.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[3], 1);
PlayerTextDrawColor(playerid, PhoneInfo[3], 8388863);
PlayerTextDrawSetShadow(playerid, PhoneInfo[3], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[3], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[3], 255);
PlayerTextDrawFont(playerid, PhoneInfo[3], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[3], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[3], 0);
PhoneInfo[4] = CreatePlayerTextDraw(playerid, 580.900268, 209.987518, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, PhoneInfo[4], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[4], 2.000000, 1.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[4], 1);
PlayerTextDrawColor(playerid, PhoneInfo[4], 8388863);
PlayerTextDrawSetShadow(playerid, PhoneInfo[4], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[4], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[4], 255);
PlayerTextDrawFont(playerid, PhoneInfo[4], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[4], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[4], 0);
PhoneInfo[5] = CreatePlayerTextDraw(playerid, 563.700683, 208.387420, "100%");
PlayerTextDrawLetterSize(playerid, PhoneInfo[5], 0.161495, 0.825625);
PlayerTextDrawAlignment(playerid, PhoneInfo[5], 1);
PlayerTextDrawColor(playerid, PhoneInfo[5], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[5], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[5], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[5], 255);
PlayerTextDrawFont(playerid, PhoneInfo[5], 2);
PlayerTextDrawSetProportional(playerid, PhoneInfo[5], 1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[5], 0);
PhoneInfo[6] = CreatePlayerTextDraw(playerid, 504.000000, 290.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[6], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[6], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[6], 1);
PlayerTextDrawColor(playerid, PhoneInfo[6], -1061109505);
PlayerTextDrawSetShadow(playerid, PhoneInfo[6], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[6], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[6], 255);
PlayerTextDrawFont(playerid, PhoneInfo[6], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[6], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[6], 0);
PhoneInfo[7] = CreatePlayerTextDraw(playerid, 504.000000, 290.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[7], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[7], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[7], 1);
PlayerTextDrawColor(playerid, PhoneInfo[7], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[7], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[7], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[7], 255);
PlayerTextDrawFont(playerid, PhoneInfo[7], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[7], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[7], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[7], true);
PhoneInfo[8] = CreatePlayerTextDraw(playerid, 512.000000, 302.500030, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[8], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[8], 12.000000, 11.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[8], 1);
PlayerTextDrawColor(playerid, PhoneInfo[8], -1523963137);
PlayerTextDrawSetShadow(playerid, PhoneInfo[8], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[8], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[8], 255);
PlayerTextDrawFont(playerid, PhoneInfo[8], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[8], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[8], 0);
PhoneInfo[9] = CreatePlayerTextDraw(playerid, 517.500000, 302.437500, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[9], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[9], 12.000000, 11.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[9], 1);
PlayerTextDrawColor(playerid, PhoneInfo[9], -1061109505);
PlayerTextDrawSetShadow(playerid, PhoneInfo[9], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[9], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[9], 255);
PlayerTextDrawFont(playerid, PhoneInfo[9], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[9], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[9], 0);
PhoneInfo[10] = CreatePlayerTextDraw(playerid, 522.500000, 302.400024, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[10], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[10], 12.000000, 11.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[10], 1);
PlayerTextDrawColor(playerid, PhoneInfo[10], 8388863);
PlayerTextDrawSetShadow(playerid, PhoneInfo[10], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[10], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[10], 255);
PlayerTextDrawFont(playerid, PhoneInfo[10], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[10], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[10], 0);
PhoneInfo[11] = CreatePlayerTextDraw(playerid, 516.000000, 311.187500, "SMS");
PlayerTextDrawLetterSize(playerid, PhoneInfo[11], 0.185497, 0.650623);
PlayerTextDrawAlignment(playerid, PhoneInfo[11], 1);
PlayerTextDrawColor(playerid, PhoneInfo[11], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[11], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[11], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[11], 255);
PlayerTextDrawFont(playerid, PhoneInfo[11], 2);
PlayerTextDrawSetProportional(playerid, PhoneInfo[11], 1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[11], 0);
PhoneInfo[12] = CreatePlayerTextDraw(playerid, 525.500000, 292.375000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[12], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[12], 13.000000, 12.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[12], 1);
PlayerTextDrawColor(playerid, PhoneInfo[12], -1523963137);
PlayerTextDrawSetShadow(playerid, PhoneInfo[12], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[12], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[12], 255);
PlayerTextDrawFont(playerid, PhoneInfo[12], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[12], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[12], 0);
PhoneInfo[13] = CreatePlayerTextDraw(playerid, 532.500000, 293.687500, "0");
PlayerTextDrawLetterSize(playerid, PhoneInfo[13], 0.310000, 0.956874);
PlayerTextDrawAlignment(playerid, PhoneInfo[13], 2);
PlayerTextDrawColor(playerid, PhoneInfo[13], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[13], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[13], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[13], 255);
PlayerTextDrawFont(playerid, PhoneInfo[13], 2);
PlayerTextDrawSetProportional(playerid, PhoneInfo[13], 1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[13], 0);
PhoneInfo[14] = CreatePlayerTextDraw(playerid, 534.499267, 290.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[14], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[14], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[14], 1);
PlayerTextDrawColor(playerid, PhoneInfo[14], -1061109505);
PlayerTextDrawSetShadow(playerid, PhoneInfo[14], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[14], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[14], 255);
PlayerTextDrawFont(playerid, PhoneInfo[14], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[14], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[14], 0);
PhoneInfo[15] = CreatePlayerTextDraw(playerid, 534.499267, 290.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[15], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[15], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[15], 1);
PlayerTextDrawColor(playerid, PhoneInfo[15], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[15], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[15], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[15], 255);
PlayerTextDrawFont(playerid, PhoneInfo[15], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[15], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[15], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[15], true);
PhoneInfo[16] = CreatePlayerTextDraw(playerid, 565.199707, 290.187500, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[16], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[16], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[16], 1);
PlayerTextDrawColor(playerid, PhoneInfo[16], -1061109505);
PlayerTextDrawSetShadow(playerid, PhoneInfo[16], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[16], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[16], 255);
PlayerTextDrawFont(playerid, PhoneInfo[16], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[16], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[16], 0);
PhoneInfo[17] = CreatePlayerTextDraw(playerid, 565.299926, 290.187500, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[17], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[17], 39.000000, 35.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[17], 1);
PlayerTextDrawColor(playerid, PhoneInfo[17], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[17], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[17], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[17], 255);
PlayerTextDrawFont(playerid, PhoneInfo[17], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[17], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[17], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[17], true);
PhoneInfo[20] = CreatePlayerTextDraw(playerid, 546.500000, 309.875000, "PHONE");
PlayerTextDrawLetterSize(playerid, PhoneInfo[20], 0.119497, 0.733748);
PlayerTextDrawAlignment(playerid, PhoneInfo[20], 1);
PlayerTextDrawColor(playerid, PhoneInfo[20], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[20], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[20], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[20], 255);
PlayerTextDrawFont(playerid, PhoneInfo[20], 2);
PlayerTextDrawSetProportional(playerid, PhoneInfo[20], 1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[20], 0);
PhoneInfo[21] = CreatePlayerTextDraw(playerid, 505.199737, 213.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[21], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[21], 26.000000, 25.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[21], 1);
PlayerTextDrawColor(playerid, PhoneInfo[21], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[21], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[21], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[21], 255);
PlayerTextDrawFont(playerid, PhoneInfo[21], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[21], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[21], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[21], true);
PhoneInfo[23] = CreatePlayerTextDraw(playerid, 523.199707, 213.625000, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[23], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[23], 26.000000, 25.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[23], 1);
PlayerTextDrawColor(playerid, PhoneInfo[23], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[23], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[23], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[23], 255);
PlayerTextDrawFont(playerid, PhoneInfo[23], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[23], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[23], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[23], true);
PhoneInfo[25] = CreatePlayerTextDraw(playerid, 541.099243, 213.562469, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[25], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[25], 26.000000, 25.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[25], 1);
PlayerTextDrawColor(playerid, PhoneInfo[25], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[25], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[25], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[25], 255);
PlayerTextDrawFont(playerid, PhoneInfo[25], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[25], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[25], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[25], true);
PhoneInfo[27] = CreatePlayerTextDraw(playerid, 559.099243, 213.562469, "ld_beat:chit");
PlayerTextDrawLetterSize(playerid, PhoneInfo[27], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[27], 26.000000, 25.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[27], 1);
PlayerTextDrawColor(playerid, PhoneInfo[27], 572662527);
PlayerTextDrawSetShadow(playerid, PhoneInfo[27], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[27], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[27], 255);
PlayerTextDrawFont(playerid, PhoneInfo[27], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[27], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[27], 0);
PlayerTextDrawSetSelectable(playerid, PhoneInfo[27], true);
PhoneInfo[28] = CreatePlayerTextDraw(playerid, 563.000122, 215.912506, "ld_otb2:ric1");
PlayerTextDrawLetterSize(playerid, PhoneInfo[28], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[28], 18.000000, 20.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[28], 1);
PlayerTextDrawColor(playerid, PhoneInfo[28], 0xFFFFFF20);
PlayerTextDrawSetShadow(playerid, PhoneInfo[28], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[28], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[28], 0xFFFFFF20);
PlayerTextDrawFont(playerid, PhoneInfo[28], 4);
PlayerTextDrawSetProportional(playerid, PhoneInfo[28], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[28], 0);
PhoneInfo[18] = CreatePlayerTextDraw(playerid, 539.099975, 215.525115, "");
PlayerTextDrawLetterSize(playerid, PhoneInfo[18], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[18], 30.000000, 24.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[18], 1);
PlayerTextDrawColor(playerid, PhoneInfo[18], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[18], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[18], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[18], 118816512);
PlayerTextDrawFont(playerid, PhoneInfo[18], 5);
PlayerTextDrawSetProportional(playerid, PhoneInfo[18], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[18], 0);
PlayerTextDrawSetPreviewModel(playerid, PhoneInfo[18], 19627);
PlayerTextDrawSetPreviewRot(playerid, PhoneInfo[18], 90.000000, -30.000000, -40.000000, 1.000000);
PhoneInfo[19] = CreatePlayerTextDraw(playerid, 536.700561, 295.700256, "");
PlayerTextDrawLetterSize(playerid, PhoneInfo[19], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[19], 39.000000, 22.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[19], 1);
PlayerTextDrawColor(playerid, PhoneInfo[19], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[19], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[19], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[19], 118816512);
PlayerTextDrawFont(playerid, PhoneInfo[19], 5);
PlayerTextDrawSetProportional(playerid, PhoneInfo[19], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[19], 0);
PlayerTextDrawSetPreviewModel(playerid, PhoneInfo[19], 19610);
PlayerTextDrawSetPreviewRot(playerid, PhoneInfo[19], 90.000000, -30.000000, -40.000000, 1.000000);
PhoneInfo[22] = CreatePlayerTextDraw(playerid, 487.100006, 177.625000, "");
PlayerTextDrawLetterSize(playerid, PhoneInfo[22], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[22], 67.000000, 58.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[22], 1);
PlayerTextDrawColor(playerid, PhoneInfo[22], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[22], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[22], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[22], 118816512);
PlayerTextDrawFont(playerid, PhoneInfo[22], 5);
PlayerTextDrawSetProportional(playerid, PhoneInfo[22], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[22], 0);
PlayerTextDrawSetPreviewModel(playerid, PhoneInfo[22], 19421);
PlayerTextDrawSetPreviewRot(playerid, PhoneInfo[22], 90.000000, 0.000000, 0.000000, 1.000000);
PhoneInfo[24] = CreatePlayerTextDraw(playerid, 523.599975, 214.812500, "");
PlayerTextDrawLetterSize(playerid, PhoneInfo[24], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[24], 25.000000, 22.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[24], 1);
PlayerTextDrawColor(playerid, PhoneInfo[24], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[24], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[24], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[24], 294155520);
PlayerTextDrawFont(playerid, PhoneInfo[24], 5);
PlayerTextDrawSetProportional(playerid, PhoneInfo[24], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[24], 0);
PlayerTextDrawSetPreviewModel(playerid, PhoneInfo[24], 18875);
PlayerTextDrawSetPreviewRot(playerid, PhoneInfo[24], -90.000000, 0.000000, 180.000000, 1.000000);
PhoneInfo[26] = CreatePlayerTextDraw(playerid, 560.599975, 296.625000, "");
PlayerTextDrawLetterSize(playerid, PhoneInfo[26], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, PhoneInfo[26], 39.000000, 23.000000);
PlayerTextDrawAlignment(playerid, PhoneInfo[26], 1);
PlayerTextDrawColor(playerid, PhoneInfo[26], -1);
PlayerTextDrawSetShadow(playerid, PhoneInfo[26], 0);
PlayerTextDrawSetOutline(playerid, PhoneInfo[26], 0);
PlayerTextDrawBackgroundColor(playerid, PhoneInfo[26], 294155520);
PlayerTextDrawFont(playerid, PhoneInfo[26], 5);
PlayerTextDrawSetProportional(playerid, PhoneInfo[26], 0);
PlayerTextDrawSetShadow(playerid, PhoneInfo[26], 0);
PlayerTextDrawSetPreviewModel(playerid, PhoneInfo[26], 19623);
PlayerTextDrawSetPreviewRot(playerid, PhoneInfo[26], 0.000000, 0.000000, 120.000000, 1.000000);
В public OnGameModeInit()
PHP:
PhoneTD[0] = TextDrawCreate(504.000000, 197.875000, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[0], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[0], 21.000000, 20.000000);
TextDrawAlignment(PhoneTD[0], 1);
TextDrawColor(PhoneTD[0], 572662527);
TextDrawSetShadow(PhoneTD[0], 0);
TextDrawSetOutline(PhoneTD[0], 0);
TextDrawBackgroundColor(PhoneTD[0], 255);
TextDrawFont(PhoneTD[0], 4);
TextDrawSetProportional(PhoneTD[0], 0);
TextDrawSetShadow(PhoneTD[0], 0);
PhoneTD[1] = TextDrawCreate(583.193603, 197.837524, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[1], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[1], 21.000000, 20.000000);
TextDrawAlignment(PhoneTD[1], 1);
TextDrawColor(PhoneTD[1], 572662527);
TextDrawSetShadow(PhoneTD[1], 0);
TextDrawSetOutline(PhoneTD[1], 0);
TextDrawBackgroundColor(PhoneTD[1], 255);
TextDrawFont(PhoneTD[1], 4);
TextDrawSetProportional(PhoneTD[1], 0);
TextDrawSetShadow(PhoneTD[1], 0);
PhoneTD[2] = TextDrawCreate(583.193725, 317.975921, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[2], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[2], 21.000000, 20.000000);
TextDrawAlignment(PhoneTD[2], 1);
TextDrawColor(PhoneTD[2], 572662527);
TextDrawSetShadow(PhoneTD[2], 0);
TextDrawSetOutline(PhoneTD[2], 0);
TextDrawBackgroundColor(PhoneTD[2], 255);
TextDrawFont(PhoneTD[2], 4);
TextDrawSetProportional(PhoneTD[2], 0);
TextDrawSetShadow(PhoneTD[2], 0);
PhoneTD[3] = TextDrawCreate(503.893615, 317.638427, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[3], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[3], 21.000000, 20.000000);
TextDrawAlignment(PhoneTD[3], 1);
TextDrawColor(PhoneTD[3], 572662527);
TextDrawSetShadow(PhoneTD[3], 0);
TextDrawSetOutline(PhoneTD[3], 0);
TextDrawBackgroundColor(PhoneTD[3], 255);
TextDrawFont(PhoneTD[3], 4);
TextDrawSetProportional(PhoneTD[3], 0);
TextDrawSetShadow(PhoneTD[3], 0);
PhoneTD[4] = TextDrawCreate(507.500000, 206.350036, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[4], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[4], 93.030006, 120.000000);
TextDrawAlignment(PhoneTD[4], 1);
TextDrawColor(PhoneTD[4], 572662527);
TextDrawSetShadow(PhoneTD[4], 0);
TextDrawSetOutline(PhoneTD[4], 0);
TextDrawBackgroundColor(PhoneTD[4], 255);
TextDrawFont(PhoneTD[4], 4);
TextDrawSetProportional(PhoneTD[4], 0);
TextDrawSetShadow(PhoneTD[4], 0);
PhoneTD[5] = TextDrawCreate(513.500000, 201.100036, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[5], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[5], 82.000000, 106.969993);
TextDrawAlignment(PhoneTD[5], 1);
TextDrawColor(PhoneTD[5], 572662527);
TextDrawSetShadow(PhoneTD[5], 0);
TextDrawSetOutline(PhoneTD[5], 0);
TextDrawBackgroundColor(PhoneTD[5], 255);
TextDrawFont(PhoneTD[5], 4);
TextDrawSetProportional(PhoneTD[5], 0);
TextDrawSetShadow(PhoneTD[5], 0);
PhoneTD[6] = TextDrawCreate(513.000000, 227.387725, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[6], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[6], 82.000000, 106.969993);
TextDrawAlignment(PhoneTD[6], 1);
TextDrawColor(PhoneTD[6], 572662527);
TextDrawSetShadow(PhoneTD[6], 0);
TextDrawSetOutline(PhoneTD[6], 0);
TextDrawBackgroundColor(PhoneTD[6], 255);
TextDrawFont(PhoneTD[6], 4);
TextDrawSetProportional(PhoneTD[6], 0);
TextDrawSetShadow(PhoneTD[6], 0);
PhoneTD[7] = TextDrawCreate(524.000000, 203.562500, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[7], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[7], 4.000000, 4.000000);
TextDrawAlignment(PhoneTD[7], 1);
TextDrawColor(PhoneTD[7], -2139062017);
TextDrawSetShadow(PhoneTD[7], 0);
TextDrawSetOutline(PhoneTD[7], 0);
TextDrawBackgroundColor(PhoneTD[7], 255);
TextDrawFont(PhoneTD[7], 4);
TextDrawSetProportional(PhoneTD[7], 0);
TextDrawSetShadow(PhoneTD[7], 0);
PhoneTD[8] = TextDrawCreate(534.000000, 205.312500, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[8], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[8], 39.000000, 1.000000);
TextDrawAlignment(PhoneTD[8], 1);
TextDrawColor(PhoneTD[8], -2139062017);
TextDrawSetShadow(PhoneTD[8], 0);
TextDrawSetOutline(PhoneTD[8], 0);
TextDrawBackgroundColor(PhoneTD[8], 255);
TextDrawFont(PhoneTD[8], 4);
TextDrawSetProportional(PhoneTD[8], 0);
TextDrawSetShadow(PhoneTD[8], 0);
PhoneTD[9] = TextDrawCreate(545.100097, 320.074981, FixText("ld_beat:chit"));
TextDrawLetterSize(PhoneTD[9], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[9], 18.109979, 15.359985);
TextDrawAlignment(PhoneTD[9], 1);
TextDrawColor(PhoneTD[9], -2139062017);
TextDrawSetShadow(PhoneTD[9], 0);
TextDrawSetOutline(PhoneTD[9], 0);
TextDrawBackgroundColor(PhoneTD[9], 255);
TextDrawFont(PhoneTD[9], 4);
TextDrawSetProportional(PhoneTD[9], 0);
TextDrawSetShadow(PhoneTD[9], 0);
PhoneTD[10] = TextDrawCreate(550.132812, 324.684875, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[10], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[10], 8.000000, 6.000000);
TextDrawAlignment(PhoneTD[10], 1);
TextDrawColor(PhoneTD[10], 255);
TextDrawSetShadow(PhoneTD[10], 0);
TextDrawSetOutline(PhoneTD[10], 0);
TextDrawBackgroundColor(PhoneTD[10], 255);
TextDrawFont(PhoneTD[10], 4);
TextDrawSetProportional(PhoneTD[10], 0);
TextDrawSetShadow(PhoneTD[10], 0);
PhoneTD[11] = TextDrawCreate(550.800048, 325.313201, FixText("LD_SPAC:white"));
TextDrawLetterSize(PhoneTD[11], 0.000000, 0.000000);
TextDrawTextSize(PhoneTD[11], 7.000000, 5.000000);
TextDrawAlignment(PhoneTD[11], 1);
TextDrawColor(PhoneTD[11], -2139062017);
TextDrawSetShadow(PhoneTD[11], 0);
TextDrawSetOutline(PhoneTD[11], 0);
TextDrawBackgroundColor(PhoneTD[11], 255);
TextDrawFont(PhoneTD[11], 4);
TextDrawSetProportional(PhoneTD[11], 0);
TextDrawSetShadow(PhoneTD[11], 0);
TextDrawSetSelectable(PhoneTD[11], true);
Так же на счет FixText:
PHP:
stock FixText(str[]) {
new result[256];
for(new i=0; i < 256; i++) {
switch(str[i]) {
case 'а':result[i] = 'a';
case 'А':result[i] = 'A';
case 'б':result[i] = '—';
case 'Б':result[i] = 'Ђ';
case 'в':result[i] = 'ў';
case 'В':result[i] = '‹';
case 'г':result[i] = '™';
case 'Г':result[i] = '‚';
case 'д':result[i] = 'љ';
case 'Д':result[i] = 'ѓ';
case 'е':result[i] = 'e';
case 'Е':result[i] = 'E';
case 'ё':result[i] = 'e';
case 'Ё':result[i] = 'E';
case 'ж':result[i] = '›';
case 'Ж':result[i] = '„';
case 'з':result[i] = 'џ';
case 'З':result[i] = '€';
case 'и':result[i] = 'њ';
case 'И':result[i] = '…';
case 'й':result[i] = 'њ';
case 'Й':result[i] = '…';
case 'к':result[i] = 'k';
case 'К':result[i] = 'K';
case 'л':result[i] = 'ћ';
case 'Л':result[i] = '‡';
case 'м':result[i] = 'Ї';
case 'М':result[i] = 'M';
case 'н':result[i] = '®';
case 'Н':result[i] = '';
case 'о':result[i] = 'o';
case 'О':result[i] = 'O';
case 'п':result[i] = 'Ј';
case 'П':result[i] = 'Њ';
case 'р':result[i] = 'p';
case 'Р':result[i] = 'P';
case 'с':result[i] = 'c';
case 'С':result[i] = 'C';
case 'т':result[i] = '¦';
case 'Т':result[i] = 'Џ';
case 'у':result[i] = 'y';
case 'У':result[i] = 'Y';
case 'ф':result[i] = '';
case 'Ф':result[i] = 'Ѓ';
case 'х':result[i] = 'x';
case 'Х':result[i] = 'X';
case 'ц':result[i] = '*';
case 'Ц':result[i] = '‰';
case 'ч':result[i] = '¤';
case 'Ч':result[i] = 'Ќ';
case 'ш':result[i] = 'Ґ';
case 'Ш':result[i] = 'Ћ';
case 'щ':result[i] = 'Ў';
case 'Щ':result[i] = 'Љ';
case 'ь':result[i] = '©';
case 'Ь':result[i] = '’';
case 'ъ':result[i] = 'ђ';
case 'Ъ':result[i] = '§';
case 'ы':result[i] = 'Ё';
case 'Ы':result[i] = '‘';
case 'э':result[i] = 'Є';
case 'Э':result[i] = '“';
case 'ю':result[i] = '«';
case 'Ю':result[i] = '”';
case 'я':result[i] = '¬';
case 'Я':result[i] = '•';
default:result[i]=str[i];
}
}
return result;
И вот, что у нас получилось:
МОДЕРАТОРАМ: Если вы решите удалить тему из-за видео(якобы реклама), подумайте о слитых модах, где кучами закиданы видеообзоры на мод!
Прощу дать адекватную критику, а так же сказать, где я ошибся, где можно было сделать получше и так далее.
Всем спасибо, за внимание!
Последнее редактирование: