Descriere: O sa va arat cat de simplu puteti crea extra-iteme la oameni pentru modul Zombie Deathmatch.
Download: -
Autor: Anonim
Sursa (Link-ul oficial): Propria parere: Enjoy!
Tutorialul:
Includem <amxmodx> , <zombie_deathmatch> si celelalte module necesare:
Cod: Selectaţi tot
#include <amxmodx>
#include <zombie_deathmatch>Cod: Selectaţi tot
new g_new_human_itemCod: Selectaţi tot
public plugin_init()
{
g_new_human_item = zd_register_human_item( "New Human Item", 3000)
/* 3000 reprezinta pretul */
}Cod: Selectaţi tot
public zd_human_item_selected(iPlayer, iItemIndex)
{
if(g_new_human_item == iItemIndex)
{
client_print(iPlayer, print_chat, "[Zombie Deathmatch] You purchased a new human item!")
}
}Cod: Selectaţi tot
#include <amxmodx>
#include <zombie_deathmatch>
new g_new_human_item
public plugin_init()
{
g_new_human_item = zd_register_human_item( "New Human Item", 3000)
}
public zd_human_item_selected(iPlayer, iItemIndex)
{
if(g_new_human_item == iItemIndex)
{
client_print(iPlayer, print_chat, "[Zombie Deathmatch] You purchased a new human item!")
}
}