Welcome on INUKA!


Nu sunteti conectat. Conectati-va sau inregistrati-va

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

avatar
V.I.P forum
V.I.P forum

Vezi profilul utilizatorului
la data de Dum 2 Feb - 12:03
Deschidem zombie_plague40.sma sau zombie_plague_advance_v1.6.1.sma
si cautam linia aceasta
Cod:
// Primary and Secondary Weapon Names
new const WEAPONNAMES[][] = { "", "P228 Compact", "", "Schmidt Scout", "", "XM1014 M4", "", "Ingram MAC-10", "Steyr AUG A1",
         "", "Dual Elite Berettas", "FiveseveN", "UMP 45", "SG-550 Auto-Sniper", "IMI Galil", "Famas",
         "USP .45 ACP Tactical", "Glock 18C", "AWP Magnum Sniper", "MP5 Navy", "M249 Para Machinegun",
         "M3 Super 90", "M4A1 Carbine", "Schmidt TMP", "G3SG1 Auto-Sniper", "", "Desert Eagle .50 AE",
         "SG-552 Commando", "AK-47 Kalashnikov", "", "ES P90" }

si ca sa adaugam culorile scriem in fata fiecarei arme urmatoarele culori :
\r - Rosu
\y - Galben
\w - Alb

Si ne apucam si modificam pana o sa avem asa :

Cod:
// Primary and Secondary Weapon Names
new const WEAPONNAMES[][] = { "", "\rP228 Compact", "", "\ySchmidt Scout", "", "\rXM1014 M4", "", "\yIngram MAC-10", "\rSteyr AUG A1",
         "", "\yDual Elite Berettas", "\rFiveseveN", "\yUMP 45", "\ySG-550 Auto-Sniper", "\rIMI Galil", "Famas",
         "\yUSP .45 ACP Tactical", "\yGlock 18C", "rAWP Magnum Sniper", "\yMP5 Navy", "\rM249 Para Machinegun",
         "\yM3 Super 90", "\rM4A1 Carbine", "\ySchmidt TMP", "\rG3SG1 Auto-Sniper", "", "\yDesert Eagle .50 AE",
         "\rSG-552 Commando", "\yAK-47 Kalashnikov", "", "\rES P90" }

Dupa ce am editam cele de sus o sa ne apara asa :
1. P228 Compact
2. Schdmidt Scout
si tot asa galben/rosu/galben/rosu etc...

=========================================================================================
Aceste culori \r , \y , \w se pot folosi si pentru clasele de Zombie / Human exemplu :
ai pe server clasa de Zombie Smoker intri in sma si cauti linia aceasta :
Cod:
new const zclass_name[] = { "Zombie Smoker" }
si modifici cu \r , \y , \w dupa bunul plac si va trebuii sa arate cam asa folosind culoarea rosu
Cod:
new const zclass_name[] = { "\rZombie Smoker" }
 
Zombie Smoker

==========================================================================================
Se mai poate folosi pentru a edita acele mesaje din meniu (M) ex .. deschidem zombie_plague40.sma si cautam 
Cod:
/*================================================================================
 [Menus]
=================================================================================*/

// Game Menu
show_menu_game(id)
{
   static menu[250], len
   len = 0
   
   // Title
   len += formatex(menu[len], sizeof menu - 1 - len, "\y%s^n^n", g_modname)
   
   // 1. Buy weapons
   if (get_pcvar_num(cvar_buycustom))
      len += formatex(menu[len], sizeof menu - 1 - len, "\r1.\w %L^n", id, "MENU_BUY")
   else
      len += formatex(menu[len], sizeof menu - 1 - len, "\d1. %L^n", id, "MENU_BUY")
   
   // 2. Extra items
   if (!g_survivor[id] && !g_nemesis[id] && get_pcvar_num(cvar_extraitems) && is_user_alive(id))
      len += formatex(menu[len], sizeof menu - 1 - len, "\r2.\w %L^n", id, "MENU_EXTRABUY")
   else
      len += formatex(menu[len], sizeof menu - 1 - len, "\d2. %L^n", id, "MENU_EXTRABUY")
   
   // 3. Zombie class
   if (get_pcvar_num(cvar_zclasses))
      len += formatex(menu[len], sizeof menu - 1 - len, "\r3.\w %L^n", id,"MENU_ZCLASS")
   else
      len += formatex(menu[len], sizeof menu - 1 - len, "\d3. %L^n", id,"MENU_ZCLASS")
   
   // 4. Unstuck
   if (is_user_alive(id))
      len += formatex(menu[len], sizeof menu - 1 - len, "\r4.\w %L^n", id, "MENU_UNSTUCK")
   else
      len += formatex(menu[len], sizeof menu - 1 - len, "\d4. %L^n", id, "MENU_UNSTUCK")
   
   // 5-6. Help and join spec
   len += formatex(menu[len], sizeof menu - 1 - len, "\r5.\w %L^n^n\r6.\w %L^n^n", id, "MENU_INFO", id, "MENU_SPECTATOR")
   // 7. Vip meniu items 
        len += formatex(menu[len], charsmax(menu) - len, "\r7.\w VIP Menu Items^n^n")  
   // 9. Admin menu
   if (get_user_flags(id) & ACCESS_FLAG)
      len += formatex(menu[len], sizeof menu - 1 - len, "\r9.\w %L", id, "MENU_ADMIN")
   else
      len += formatex(menu[len], sizeof menu - 1 - len, "\d9. %L", id, "MENU_ADMIN")
        case 6: client_cmd(id, "say /vm") // Vip menu call
   
   // 0. Exit
   len += formatex(menu[len], sizeof menu - 1 - len, "^n^n\r0.\w %L", id, "MENU_EXIT")
   
   show_menu(id, KEYSMENU, menu, -1, "Game Menu")
}
si incepem sa modificam exemplu luam :
Cod:
len += formatex(menu[len], charsmax(menu) - len, "\r7.\w VIP Meniu Items^n^n")
si modificam aici
Cod:
\r7.\w VIP Menu Items
inloc de \w punem \y
Cod:
\r7.\y VIP Meniu Items
si o sa ne apara asa Vip Menu Items

Celelalte le gasiti in zombie_plague.txt si de acolo puteti pune direct culorile \r  \y  \w exemplu intram in zombie_plague.txt si cautam :
Cod:
MENU_BUY = Buy Weapons
MENU_EXTRABUY = Buy Extra Items
MENU_ZCLASS = Choose Zombie Class
MENU_UNSTUCK = Unstuck
MENU_ADMIN_CUSTOM = Start Custom Modes Menu
MENU_ADMIN = Change Class Or Respawn Someone
MENU2_ADMIN = Start Modes Menu
MENU3_ADMIN = Admin Menu
MENU_INFO = Help
MENU_SPECTATOR = Join Spectators
Astea sunt cele default cu alb(\w)
Acum o sa le modificam luand culoarea rosu(\r)
Cod:
MENU_BUY = \rBuy Weapons
si va aparea asa 
Buy Weapons


______________________________________________________

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum