Raised This Month: $51 Target: $400
 12% 

N00B & Simple Customization tutorial to change small things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 02-03-2009 , 18:26   N00B & Simple Customization tutorial to change small things
Reply With Quote #1

Hi to Everyone!

This is a small and easy tutorial to change for example the name and the version-that its shown in the game menu & in the list of servers.

1º: how to Change Plugin Name And Version?

First Open zombie_plague40.sma with notepad. Then Search this: // Register plugin call

You will find this
PHP Code:
// Register plugin call
    
register_plugin("Zombie Plague"PLUGIN_VERSION"MeRcyLeZZ"
you can change to this
PHP Code:
// Register plugin call
    
register_plugin("ZP your server"PLUGIN_VERSION"MeRcyLeZZ Edited by NickZ"
We didin´t finish yet. Go to
Code:
/*================================================================================
 [Offsets and Constants]
=================================================================================*/
You have probably this

PHP Code:
// Plugin Version
new const PLUGIN_VERSION[] = "4.1" 
change to this-for example LOL

PHP Code:
// Plugin Version
new const PLUGIN_VERSION[] = "[NickZ]" 
After that save it, compile it and copy it in amxmodx\plugins\

So when you see in the find server window your server...

Server name | Game | Players
Link Server OMG! | Counter-Strike | 11/18
Take that! | Zombie Plague [TT]| 24/24

Its a very small change, but looks very good

2º How to change weapons´name

Again in zombie_plague40.sma

Search this: // Primary and Secondary Weapon Names

We found this
PHP Code:
// 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" 
Change it how do you want. Example
PHP Code:
// Primary and Secondary Weapon Names
new const WEAPONNAMES[][] = { """P228 Compact""""Scout [B, 4, 2]""""semi-auntomatic Shotgun""""MAC-10""Bullop",
            
"""Dual Elites""FiveseveN""UMP 45""SG-550 Auto-Sniper""IMI Galil""Famas",
            
"USP .45 ACP Tactical""Glock 18C""AWP Magnum Sniper""MP5 Navy""M249 [Machinegun]",
            
"M3 Super 90 [Non automatic shotgun]""M4A1 Carbine""Schmidt TMP""G3SG1 Auto-Sniper""""Desert Eagle .50 AE",
            
"SG-552 Commando""AK-47""""ES P90" 
3º How to change some lines of the game

The language
To change lines of the zombie plague game (sorry for my english):
open addons\amxmodx\data\lang\zombie_plague.txt

It isn´t hard. Example in spanish:

PHP Code:
[es]
NOTICE_INFO1 Presiona M para mostrar el menu de juego
NOTICE_INFO2 
Presiona para comprar municion
NOTICE_VIRUS_FREE 
El Virus-T se ha liberado...
NOTICE_FIRST = %s es el primer zombie !!
NOTICE_INFECT = %s ha perdido su cerebro...
NOTICE_INFECT2 = %s ha perdido su cerebro a manos de %s...
NOTICE_ANTIDOTE = %s ha usado un antidoto...
NOTICE_NEMESIS La @#%a madre! %s es Nemesis !!!
NOTICE_SURVIVOR = %s es el unico que queda !!!
NOTICE_SWARM Modo Swarm !!!
NOTICE_MULTI Infeccion Multiple !!!
NOTICE_PLAGUE Modo Plague !!!

WIN_HUMAN Los Humanos han vencido la plaga!
WIN_ZOMBIE Los Zombies han tomado el server de %hostname%...menos mal que hice un backup!
WIN_NO_ONE Nadie ha ganado...No me queda otra que la Bomba

CMD_INFECT 
convertido en Zombie
CMD_DISINFECT 
convertido en Humano
CMD_NEMESIS 
convertido en Nemesis
CMD_SURVIVAL 
convertido en Survivor
CMD_SWARM 
comenzar Modo Swarm
CMD_MULTI 
comenzar Infeccion Multiple
CMD_PLAGUE 
comenzar Modo Plague
CMD_RESPAWN 
revivido
CMD_NOT 
Comando no disponible.
CMD_ZOMBIE_ONLY Esto solo esta disponible para zombies.
CMD_HUMAN_ONLY Esto solo esta disponible para humanos.
CMD_NOT_STUCK No estas trabado.
CMD_NOT_ACCESS No tienes acceso.
CMD_NOT_CANTUSE No puedes usar esto ahora.
CMD_NOT_EXTRAS Los Items Extra estan deshabilitados.
CMD_NOT_ZCLASSES Las Clases de Zombie estan deshabilitadas.

[
COLOR="Red"]MENU_BUY Comprar Armas
MENU_EXTRABUY 
Comprar Items Extra
MENU_ZCLASS 
Elegir Clase de Zombie
MENU_UNSTUCK 
Destrabar (unstuck)
MENU_ADMIN Menu de Admin
MENU_INFO 
Ayuda
MENU_SPECTATOR 
Unirse a Espectador[/COLOR]

MENU_BUY1_TITLE Arma Primaria
MENU_BUY2_TITLE 
Arma Secundaria
MENU_ZCLASS_TITLE 
Clase de Zombie
MENU_EXTRA_TITLE 
Items Extra
MENU_ADMIN_TITLE 
Menu de Admin
MENU_INFO_TITLE 
Informacion del Plugin

MENU_EXTRA1 
NightVision (una ronda)
MENU_EXTRA2 Antidoto del Virus-T
MENU_EXTRA3 
Furia Zombie
MENU_EXTRA4 
Bomba de Infeccion
MENU_ADMIN1 
Hacer Zombie/Humano
MENU_ADMIN2 
Hacer Nemesis
MENU_ADMIN3 
Hacer Survivor
MENU_ADMIN4 
Revivir a Alguien
MENU_ADMIN5 
Comenzar Modo Swarm
MENU_ADMIN6 
Comenzar Infeccion Multiple
MENU_ADMIN7 
Comenzar Modo Plague
MENU_INFO1 
General
MENU_INFO2 
Humanos
MENU_INFO3 
Zombies
MENU_INFO4 
Modos de Juego 
How to change the name of the main menui options

MENU_BUY = Buy Weapon
MENU_EXTRABUY = Buy Extra item
MENU_ZCLASS = Choose Zombie Class
MENU_UNSTUCK = Unstuck
MENU_ADMIN = Admin Menu
MENU_INFO = Help
MENU_SPECTATOR = Join Spectator


4º You dont want to show the players´map vote?

open amxmodx\data\lang\mapchooser.txt

We have this

PHP Code:
[en]
CHO_FIN_EXT Choosing finishedCurrent map will be extended to next %.0f minutes
CHO_FIN_NEXT 
Choosing finishedThe nextmap will be %s
CHOSE_EXT 
= %s chose map extending
X_CHOSE_X 
= %s chose %s
CHOOSE_NEXTM 
AMX Choose nextmap
EXTED_MAP 
Extend map %s
TIME_CHOOSE 
It's time to choose the nextmap... 
We change it to this

PHP Code:
[en]
CHO_FIN_EXT Choosing finishedCurrent map will be extended to next %.0f minutes
CHO_FIN_NEXT 
Choosing finishedThe nextmap will be %s
CHOSE_EXT 
someone chose map extending
X_CHOSE_X 
someone chose %s
CHOOSE_NEXTM 
AMX Choose nextmap
EXTED_MAP 
Extend map %s
TIME_CHOOSE 
It's time to choose the nextmap... 
or

PHP Code:
[en]
CHO_FIN_EXT Choosing finishedCurrent map will be extended to next %.0f minutes
CHO_FIN_NEXT 
Choosing finishedThe nextmap will be %s
CHOSE_EXT 
Top Secret!
X_CHOSE_X Top Secret!
CHOOSE_NEXTM AMX Choose nextmap
EXTED_MAP 
Extend map %s
TIME_CHOOSE 
It's time to choose the nextmap... 

5º How to show messages in game (scroll messages)

open amxmodx\configs\amxx.cfg

This is my archive:

PHP Code:
// AMX Mod X Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
//
// Default value: 2
amx_show_activity 2

// Frequency in seconds and text of scrolling message
//
// Default value: "Bienvenidos Al Servidor - %hostname%" 600
amx_scrollmsg "%hostname% -> Welcome" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Server Mod Zombie Plague 4.1" "000255100"
//                 "Welcome -> Don´t cheat #@%" "000100255"
[COLOR="Red"]amx_imessage "Welcome -> Prepare to FIGHT" "50 50 250"
amx_imessage ">--> Don´t panic, be cool <--<" "50 50 250"
amx_imessage "Mod Zombie Plague 4.1 Edited by NickZ" "50 50 250"
amx_imessage "Close the Ares, the MSN and the videos please" "50 50 250"[/COLOR]

// Frequency in seconds of colored messages
//
// Default value: 120
amx_freq_imessage 120

// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75

// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0

// If you set this to 1, you can hide slots on your server.
// If server "full" of public slots and slots hidden, you must manually connect with connect console command
//
// Default value: 0
amx_hideslots 0

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
//
// Default value: "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.
//
// Default value: 1
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
//
// Default value: 10
amx_vote_delay 10

// How long voting session goes on
//
// Default value: 10
amx_vote_time 10

// Display who votes for what option, set to 0 to disable, 1 to enable.
//
// Default value: 1
amx_vote_answers 1

// Some ratios for voting success

// Default value: 0.40
amx_votekick_ratio 0.40

// Default value: 0.40
amx_voteban_ratio 0.40

// Default value: 0.40
amx_votemap_ratio 0.40

// Default value: 0.02
amx_vote_ratio 0.02

// Max. time to which map can be extended
//
// Default value: 90
amx_extendmap_max 90

// Step for each extending
//
// Default value: 15
amx_extendmap_step 15

// If you set this to 0, clients cannot chose their language, instead they use
// whatever language the server is configured to use.
//
// Default value: 1
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 1

// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
//
// Default value: ""
amx_mldebug ""

//
// Beginning of Counter-Strike package specific configurations.
//

// Rank mode
// 0 - by nick
// 1 - by authid 
// 2 - by ip
//
// Default value: 1
csstats_rank 1

// Max size of the stats file
//
// Default value: 3500
csstats_maxsize 3500

// Whether or not to rank bots with csstats - set to 1 to rank bots, 0 otherwise.
//
// Default value: 0
csstats_rankbots 0

// Duration of HUD-statistics
//
// Default value: 12.0
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
//
// Default value: -2.0
amx_statsx_freeze -2.0 
You can add whatever you want.


6º How to Change the The Welcome window

Example:
Image

To change it, you have to open cstrike\motd.txt. This Archive shows Html CODE. So you can use images, tables, colors, types, Frames, links and more... I recomend to use a visual editor.

This is my new welcome window

PHP Code:
<strong> </strong>
<
p align="center"><font face="Verdana" size="1" color="#32cd32"><font color="#000000" size="6"><em>Bienvenido a El server que le gusta a Tu vieja</em></font><strong><font face="Verdana" color="#228b22"><font color="#008080"><br />
 </
font></font></strong><font face="Verdana" color="#228b22"><font color="#008080">        <em><font color="#000000" size="4">En castellano</font></em></font></font></font></p>
<
p align="center"><font face="Verdana" size="1" color="#32cd32"><em><font color="#000000" size="4">Del</font></em><strong><font face="Verdana" color="#228b22"><font color="#008080"><br />
  </
font></font><font face="Verdana" size="1" color="#000000"><br />
  <
img height="140" width="750" alt="" src="http://www.clankmpa.com.ar/LogoCK.png" /><br />
  </
font></strong></font></p
That´s all Folks. I wonder it will help you, & i out it in the correct forum.
__________________
Why do they send babies to fight me? -Heavy


Last edited by nicolazo103; 02-03-2009 at 19:20.
nicolazo103 is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-03-2009 , 19:12   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #2

i like that you wish to help people, but many of them has nothing to do with ZP (like amxx scroll message or motd LOL) and you shouldnt change plugin author except you have change it toooooooooooooooooooooooooooooooo much.
bye
Speed! is offline
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 02-03-2009 , 19:19   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #3

I never changed the plugin editor. I only gave an example, By MeRcyLeZZ edited by NickZ.
And totally Agree with you in this
Quote:
Originally Posted by Speed! View Post
iyou shouldnt change plugin author except you have change it toooooooooooooooooooooooooooooooo much.
bye
__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
alfonso84
Member
Join Date: Jan 2009
Location: Perú
Old 02-03-2009 , 22:53   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #4

Someone could create a plugin of lasermine but only for ZOMBIES ??
alfonso84 is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-03-2009 , 23:11   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #5

Quote:
Originally Posted by alfonso84 View Post
Someone could create a plugin of lasermine but only for ZOMBIES ??
thats really off topic O.o
use default lasermine (not ZP lasermine) and set the team to TT
Speed! is offline
Old 02-04-2009, 03:03
Fry!
This message has been deleted by Fry!. Reason: Even better.
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 02-04-2009 , 08:30   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #6

Quote:
Originally Posted by Speed! View Post
i like that you wish to help people, but many of them has nothing to do with ZP (like amxx scroll message or motd LOL) and you shouldnt change plugin author except you have change it toooooooooooooooooooooooooooooooo much.
bye
You use the first, the second, the third and the fourth step in your server. I´ve seen it. You change the options menu names, the weapons´name. And version name.
So somebody use it, before this tutorial LOL, but you used it.
PD:You have a very good server
__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-04-2009 , 12:38   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #7

Quote:
Originally Posted by nicolazo103 View Post
You use the first, the second, the third and the fourth step in your server. I´ve seen it. You change the options menu names, the weapons´name. And version name.
So somebody use it, before this tutorial LOL, but you used it.
PD:You have a very good server
i have changed the code that much that i think its necesary to write ZP 7.00 (thats my current version) by Mercylezz (of course) edited by speed!
but i will never delete mercylezz, even if i rewrite the code
Speed! is offline
alfonso84
Member
Join Date: Jan 2009
Location: Perú
Old 02-04-2009 , 12:47   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #8

How ?? change the objetive of the lasermine ? to TERRORIST or Zombies - Send me the SMA ,ok?
alfonso84 is offline
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 02-04-2009 , 13:30   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #9

Quote:
Originally Posted by Speed! View Post
i have changed the code that much that i think its necesary to write ZP 7.00 (thats my current version) by Mercylezz (of course) edited by speed!
but i will never delete mercylezz, even if i rewrite the code
I either deleted "MeRcyLezZ, i Wrote: By MeRcyLezZ edited by NickZ
__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
happyness
Member
Join Date: Dec 2010
Location: Romania
Old 12-30-2010 , 04:05   Re: N00B & Simple Customization tutorial to change small things
Reply With Quote #10

Hey nicolazo how i can change the name of nightmare-mode ? when i start nightmare mode is say assassin vs sniper mode has begu but i want night-mare mode has begun
happyness is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode