Edward Walters
Новичок
Здравствуйте, уважаемые посетители pawno-info.ru. Представляю вам систему паспорта на TextDraws. Рисовал текстдрав нексолько дней назад, автором, соответственно являюсь я ( Edward Walters ).
Сразу скажу:
Установка
Сразу скажу:
- Рисовал текстдрав для людей с русификатором ( соответственно русский текст, при желании можно изменить, конечно же )
- Текстдрав простенький, переменные при предъявлении паспорта замените на свои.
- Если сделал что не так - не серчайте. )
Установка
- Ко всем new
Код:new PlayerText:tdpass[11][MAX_PLAYERS]; // ### Текстдрав паспорта, при желании измените на просто Text: - Сам текстдрав добавьте ко всем тексдравам PlayerText ( не знаю, у некоторые находится в OnPlayerConnect, лично у меня есть stock )
Код:tdpass[0][playerid] = CreatePlayerTextDraw(playerid, 458.000061, 171.739974, "usebox"); PlayerTextDrawLetterSize(playerid, tdpass[0][playerid], 0.000000, 16.471481); PlayerTextDrawTextSize(playerid, tdpass[0][playerid], 164.399978, 0.000000); PlayerTextDrawAlignment(playerid, tdpass[0][playerid], 1); PlayerTextDrawColor(playerid, tdpass[0][playerid], 0); PlayerTextDrawUseBox(playerid, tdpass[0][playerid], true); PlayerTextDrawBoxColor(playerid, tdpass[0][playerid], 102); PlayerTextDrawSetShadow(playerid, tdpass[0][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[0][playerid], 0); PlayerTextDrawFont(playerid, tdpass[0][playerid], 0); tdpass[1][playerid] = CreatePlayerTextDraw(playerid, 453.399902, 175.726608, "usebox"); PlayerTextDrawLetterSize(playerid, tdpass[1][playerid], 0.000000, 15.591482); PlayerTextDrawTextSize(playerid, tdpass[1][playerid], 168.399948, 0.000000); PlayerTextDrawAlignment(playerid, tdpass[1][playerid], 1); PlayerTextDrawColor(playerid, tdpass[1][playerid], 0); PlayerTextDrawUseBox(playerid, tdpass[1][playerid], true); PlayerTextDrawBoxColor(playerid, tdpass[1][playerid], 877223594); PlayerTextDrawSetShadow(playerid, tdpass[1][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[1][playerid], 0); PlayerTextDrawFont(playerid, tdpass[1][playerid], 0); tdpass[2][playerid] = CreatePlayerTextDraw(playerid, 350.399841, 191.146682, "New Textdraw"); PlayerTextDrawLetterSize(playerid, tdpass[2][playerid], 0.449999, 1.600000); PlayerTextDrawTextSize(playerid, tdpass[2][playerid], 92.799942, 72.426734); PlayerTextDrawAlignment(playerid, tdpass[2][playerid], 1); PlayerTextDrawColor(playerid, tdpass[2][playerid], -1); PlayerTextDrawUseBox(playerid, tdpass[2][playerid], true); PlayerTextDrawBoxColor(playerid, tdpass[2][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[2][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[2][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[2][playerid], -188); PlayerTextDrawFont(playerid, tdpass[2][playerid], 5); PlayerTextDrawSetProportional(playerid, tdpass[2][playerid], 1); PlayerTextDrawSetPreviewModel(playerid, tdpass[2][playerid], 1); PlayerTextDrawSetPreviewRot(playerid, tdpass[2][playerid], 359.000000, 0.000000, 0.000000, 1.000000); tdpass[3][playerid] = CreatePlayerTextDraw(playerid, 188.000045, 176.213333, "Passport OF State San Andreas"); PlayerTextDrawLetterSize(playerid, tdpass[3][playerid], 0.353199, 1.405866); PlayerTextDrawAlignment(playerid, tdpass[3][playerid], 1); PlayerTextDrawColor(playerid, tdpass[3][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[3][playerid], 1); PlayerTextDrawSetOutline(playerid, tdpass[3][playerid], 0); PlayerTextDrawBackgroundColor(playerid, tdpass[3][playerid], 51); PlayerTextDrawFont(playerid, tdpass[3][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[3][playerid], 1); tdpass[4][playerid] = CreatePlayerTextDraw(playerid, 184.799987, 201.599899, "…M•:"); // Name PlayerTextDrawLetterSize(playerid, tdpass[4][playerid], 0.290798, 1.413333); PlayerTextDrawAlignment(playerid, tdpass[4][playerid], 1); PlayerTextDrawColor(playerid, tdpass[4][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[4][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[4][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[4][playerid], 51); PlayerTextDrawFont(playerid, tdpass[4][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[4][playerid], 1); tdpass[5][playerid] = CreatePlayerTextDraw(playerid, 184.200012, 233.959915, "ѓA¦A PO„ѓE®…•:"); // Date PlayerTextDrawLetterSize(playerid, tdpass[5][playerid], 0.298799, 1.383466); PlayerTextDrawAlignment(playerid, tdpass[5][playerid], 1); PlayerTextDrawColor(playerid, tdpass[5][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[5][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[5][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[5][playerid], 51); PlayerTextDrawFont(playerid, tdpass[5][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[5][playerid], 1); tdpass[6][playerid] = CreatePlayerTextDraw(playerid, 184.999938, 217.533340, "ЃAM…‡…•:"); // Фамилия PlayerTextDrawLetterSize(playerid, tdpass[6][playerid], 0.290798, 1.413333); PlayerTextDrawAlignment(playerid, tdpass[6][playerid], 1); PlayerTextDrawColor(playerid, tdpass[6][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[6][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[6][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[6][playerid], 51); PlayerTextDrawFont(playerid, tdpass[6][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[6][playerid], 1); tdpass[7][playerid] = CreatePlayerTextDraw(playerid, 178.399963, 192.639968, "."); PlayerTextDrawLetterSize(playerid, tdpass[7][playerid], 22.075597, 0.188800); PlayerTextDrawAlignment(playerid, tdpass[7][playerid], 1); PlayerTextDrawColor(playerid, tdpass[7][playerid], -1061109505); PlayerTextDrawSetShadow(playerid, tdpass[7][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[7][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[7][playerid], 51); PlayerTextDrawFont(playerid, tdpass[7][playerid], 1); PlayerTextDrawSetProportional(playerid, tdpass[7][playerid], 1); tdpass[8][playerid] = CreatePlayerTextDraw(playerid, 184.400009, 251.386581, "MEC¦O ЊPO„…‹A®…•: "); PlayerTextDrawLetterSize(playerid, tdpass[8][playerid], 0.298799, 1.383466); PlayerTextDrawAlignment(playerid, tdpass[8][playerid], 1); PlayerTextDrawColor(playerid, tdpass[8][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[8][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[8][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[8][playerid], 51); PlayerTextDrawFont(playerid, tdpass[8][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[8][playerid], 1); tdpass[9][playerid] = CreatePlayerTextDraw(playerid, 183.800003, 267.319885, "BOE®®‘† —…‡E¦:"); PlayerTextDrawLetterSize(playerid, tdpass[9][playerid], 0.298799, 1.383466); PlayerTextDrawAlignment(playerid, tdpass[9][playerid], 1); PlayerTextDrawColor(playerid, tdpass[9][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[9][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[9][playerid], 1); PlayerTextDrawBackgroundColor(playerid, tdpass[9][playerid], 51); PlayerTextDrawFont(playerid, tdpass[9][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[9][playerid], 1); tdpass[10][playerid] = CreatePlayerTextDraw(playerid, 332.000000, 300.426544, "ЊOѓЊ…C’:"); PlayerTextDrawLetterSize(playerid, tdpass[10][playerid], 0.298799, 1.383466); PlayerTextDrawAlignment(playerid, tdpass[10][playerid], 1); PlayerTextDrawColor(playerid, tdpass[10][playerid], -1); PlayerTextDrawSetShadow(playerid, tdpass[10][playerid], 0); PlayerTextDrawSetOutline(playerid, tdpass[10][playerid], 0); PlayerTextDrawBackgroundColor(playerid, tdpass[10][playerid], 51); PlayerTextDrawFont(playerid, tdpass[10][playerid], 2); PlayerTextDrawSetProportional(playerid, tdpass[10][playerid], 1); - Ко всем стокам ( в начало или в конце мода, где хотите добавляйте, переменные измените на свои. )
Код:stock LoadPass(playerid) { new str[32],sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(str, sizeof(str),"…M•: %s",Firstname(sendername)), PlayerTextDrawSetString(playerid, tdpass[4][playerid],str); format(str, sizeof(str),"ЃAM…‡…•: %s",Lastname(sendername)), PlayerTextDrawSetString(playerid, tdpass[6][playerid],str); format(str, sizeof(str),"ѓA¦A PO„ѓE®…•: %s",Gamer[playerid][pHappy]), PlayerTextDrawSetString(playerid, tdpass[5][playerid],str); format(str, sizeof(str),"ЊPOЊ…CKA: %d",Gamer[playerid][pHouseID]), PlayerTextDrawSetString(playerid, tdpass[8][playerid],str); format(str, sizeof(str),"BOE®®‘† —…‡E¦: No-One"), PlayerTextDrawSetString(playerid, tdpass[9][playerid],str); format(str, sizeof(str),"ЊOѓЊ…C’: No-One"), PlayerTextDrawSetString(playerid, tdpass[10][playerid],str); PlayerTextDrawSetPreviewModel(playerid, tdpass[2][playerid], Gamer[playerid][pSkin]); SetPVarInt(playerid, "PassPort", 1); return true; } - Сама команда ( DC_CMD, если нужно подстраивайте уже под свой командный процессор )
Код:CMD:showpass(playerid,params[]) { new Float:plocx,Float:plocy,Float:plocz; if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, -1, "ИНФО: /showpass [ID]"); GetPlayerPos(params[0],plocx,plocy,plocz); if(Gamer[playerid][pPasport] == 0) return SendClientMessage(playerid, -1, "У тебя нет паспорта !"); if(!IsPlayerInRangeOfPoint(playerid,10.0,plocx,plocy,plocz)) return SendClientMessage(playerid, -1, "Ты слишком далеко от этого игрока !"); LoadPass(playerid); for(new i=0; i < sizeof(tdpass); i++) PlayerTextDrawShow(playerid,tdpass[i][playerid]); return true; }
Последнее редактирование:
