Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
./*
======================================
Plugin Name: xPoint - Plague
Desc: a XP Mod For Zombie Plague
Author: Sophia - Dias
Email: [email protected]
---- Credits -----
- Sophia - Dias (Make This Plugin)
- flyeni6 (Xp Mod Tut, Nvault)
======================================
*/
#include <amxmodx>
#include <amxmisc>
#include <nvault>
#include <zombieplague>
#include <hamsandwich>
new g_player_xp[33]
new g_vault_xp
new xpoint_infect
new xpoint_kill
new xpoint_sync
public plugin_init()
{
register_plugin("[ZP] xPoint - Plague", "1.0", "Sophia - Dias")
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
register_event("DeathMsg", "human_kill_zombie", "a")
xpoint_infect = register_cvar("zp_xpoint_infect_point", "50")
xpoint_kill = register_cvar("zp_xpoint_kill_point", "100")
xpoint_sync = CreateHudSyncObj()
g_vault_xp = nvault_open("xpoint-plague")
}
public client_putinserver(id)
{
set_task(0.1, "set_hud", id, _, _, "b")
}
public set_hud(id)
{
set_hudmessage(255, 255, 255, -1.0, 0.86, 0, 6.0, 12.0)
ShowSyncHudMsg(id, xpoint_sync, "[xPoint Plague]^nPoint: %i", g_player_xp[id])
}
public zp_user_infected_post(id, victim, infector)
{
if(is_user_alive(infector) && zp_get_user_zombie(infector))
g_player_xp[infector] += get_pcvar_num(xpoint_infect)
}
public fw_PlayerKilled(id, victim, attacker)
{
if(is_user_alive(attacker) && !zp_get_user_zombie(attacker))
{
g_player_xp[attacker] += get_pcvar_num(xpoint_kill)
}
}
public client_connect(id)
{
LoadData(id)
}
public client_disconnect(id)
{
SaveData(id)
}
public SaveData(id)
{
new AuthID[33]
get_user_authid(id,AuthID,32)
new vaultkey[64],vaultdata[256]
format(vaultkey,63,"%s-xpoint",AuthID)
format(vaultdata,255,"%i#",g_player_xp[id])
nvault_set(g_vault_xp,vaultkey,vaultdata)
return PLUGIN_CONTINUE
}
public LoadData(id)
{
new AuthID[33]
get_user_authid(id,AuthID,32)
new vaultkey[64],vaultdata[256]
format(vaultkey,63,"%s-xpoint",AuthID)
format(vaultdata,255,"%i#",g_player_xp)
nvault_get(g_vault_xp,vaultkey,vaultdata,255)
replace_all(vaultdata, 255, "#", " ")
new playerxp[33]
parse(vaultdata, playerxp, 31)
g_player_xp[id] = str_to_num(playerxp)
return PLUGIN_CONTINUE
}
, h mới biết , trc h có làm mấy cái này đâu

new fire_sound[][] = "weapons/ak47-1.wav"
public plugin_init()
{
register_forward(Fm_emitsound, "fwd_emitsound")
}
public plugin_precache()
{
precache_sound(fire_sound[0])
}
public fw_emitsoundound(entity,channel,sample[],Float:volume,Float:attenuation,fFlags,pitch) {
if(equali(sample,"weapons/ak47-1.wav"))
{
emit_sound(entity,channel,fire_sound,volume,attenuation,fFlags,pitch);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
[/hp]
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(1680) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(1881) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(1882) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3073) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3173) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3201) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3231) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3264) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3331) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3386) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3669) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3864) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(3885) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(4834) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5001) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5009) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5163) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5183) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5486) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5487) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(5529) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(6754) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7043) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7119) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7132) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7200) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7211) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7421) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7564) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7611) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7629) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7634) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7663) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7741) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7912) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(7953) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8075) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8136) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8151) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8166) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8181) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8196) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8210) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8214) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8234) :
warning 217: loose indentation
// E:\Game\CS Volcano\cstrike\addons\amxmodx\scripting\resident_evil.sma(8252) :
.. Biết cách khắc phục không, tự nhiên lâu không sờ tới quên mất rồi.@Uno : Sory , chiều định rep mà máy tự rétart ,quên luônforward zp_user_infected_post(id, infector, nemesis)
ShowTheSign( const id ) {
set_hudmessage( 0, 100, 200, -1.0, -1.0, 2, 0.1, 3.0, 0.02, 0.02, 4 );
ShowSyncHudMsg( id, g_iHudSync, "\ /^n/ \" );
client_cmd(id, "speak codmw2/hit")
}

còn cái soudn bỏ vô folder nào vậy ? sound/codmw2/hit.wav hả ?
@Chief : Tab ra , dùng AMX STUDIO nó cách tab ra nhìn cho dễ đọc , dễ đọc cũng đc tính điểm trong việc scripting mà![]()
, ngồi tab cả buổi.@kakaan96: code change model weapon thì biết rồi .
Chỉ việc register 1 extra item chung với 1 zombie class , nếu thằng mua khác class thì trả lại tiền , thế thôi![]()
đọc smacho em hỏi:
em dùng GunGame Mod cho CSONST
vậy có thể thêm vũ khí vào list và thay đổi thứ tự của vũ khí được không?
và làm thế nào nữa?![]()
. Việc chỉnh vị trí của spr trên hud cũng vậy , nếu hướng dẫn đc thì...tui sẽ cố.