Danil_Grove
Ученик
Во многих модах есть такая система как "Донат аккаунт","Премиум Аккаунт" ну у кого как.
Если донат аккаунт равен 1, то у игрока в нижних углах экрана надпись - Vip
Если донат аккаунт равен 2, то у игрока в нижних углах экрана надпись - Gold
Ну что ж приступим:
Для начала нужно добавить ко всем new:
Далее идем в
И вставляем это:
Далее в
Вставляем это:
Ищем:
Вставляем это:
На этом мануал закончен...
Спасибо за внимание.
Если донат аккаунт равен 1, то у игрока в нижних углах экрана надпись - Vip
Если донат аккаунт равен 2, то у игрока в нижних углах экрана надпись - Gold
Ну что ж приступим:
Для начала нужно добавить ко всем new:
PHP:
new Text:Vip, Text:Gold, Text:Light, Text:Vip2;
PHP:
public OnPlayerSpawn
PHP:
switch (PlayerInfo[playerid][pDonateRank])
{
case 1: TextDrawShowForPlayer(playerid, Vip2), TextDrawShowForPlayer(playerid, Light);
case 2: TextDrawShowForPlayer(playerid, Vip), TextDrawShowForPlayer(playerid, Gold);
}
PHP:
public OnGameModeExit
PHP:
TextDrawDestroy(Vip);
TextDrawDestroy(Gold);
TextDrawDestroy(Vip2);
TextDrawDestroy(Light);
PHP:
public OnGameModeInit()
PHP:
Vip = TextDrawCreate(2.000000,415.000000,"Vip");
TextDrawAlignment(Vip,0);
TextDrawBackgroundColor(Vip,0x000000ff);
TextDrawFont(Vip,1);
TextDrawLetterSize(Vip,2.000000,3.400000);
TextDrawColor(Vip,0xffff00cc);
TextDrawSetProportional(Vip,1);
TextDrawSetShadow(Vip,3);
Gold = TextDrawCreate(638.000000,415.000000,"Gold");
TextDrawAlignment(Gold,3);
TextDrawBackgroundColor(Gold,0x000000ff);
TextDrawFont(Gold,1);
TextDrawLetterSize(Gold,2.000000,3.400000);
TextDrawColor(Gold,0xffff00cc);
TextDrawSetProportional(Gold,1);
TextDrawSetShadow(Gold,3);
Light = TextDrawCreate(638.000000,415.000000,"Light");
TextDrawAlignment(Light,3);
TextDrawBackgroundColor(Light,0x000000ff);
TextDrawFont(Light,1);
TextDrawLetterSize(Light,2.000000,3.400000);
TextDrawColor(Light,0x00ffffff);
TextDrawSetProportional(Light,1);
TextDrawSetShadow(Light,3);
Vip2 = TextDrawCreate(2.000000,415.000000,"Vip");
TextDrawAlignment(Vip2,0);
TextDrawBackgroundColor(Vip2,0x000000ff);
TextDrawFont(Vip2,1);
TextDrawLetterSize(Vip2,2.000000,3.400000);
TextDrawColor(Vip2,0x00ffffff);
TextDrawSetProportional(Vip2,1);
TextDrawSetShadow(Vip2,3);
Спасибо за внимание.
