[Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Oameni
Just4You :: COUNTER-STRIKE :: Tutoriale
Pagina 1 din 1
[Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Oameni
[size=150]Counter Strike Zombie Deathmatch[/size]
Salut!O sa va arat cat de simplu puteti crea extra-iteme la oameni pentru modul Zombie Deathmatch.
Includem <amxmodx> , <zombie_deathmatch> si celelalte module necesare:
[sursa=]#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!")
}
}[/sursa]
Salut!O sa va arat cat de simplu puteti crea extra-iteme la oameni pentru modul Zombie Deathmatch.
Includem <amxmodx> , <zombie_deathmatch> si celelalte module necesare:
- Cod:
#include <amxmodx>
#include <zombie_deathmatch>
- Cod:
new g_new_human_item
- Cod:
public plugin_init()
{
g_new_human_item = zd_register_human_item( "New Human Item", 3000)
/* 3000 reprezinta pretul */
}
- Cod:
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!")
}
}
[sursa=]#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!")
}
}[/sursa]
TeMciuC.- Membru
- Mesaje : 367
Data de inscriere : 11/10/2011
Varsta : 31
Localizare : Moldova / Vadul lui Voda
Puncte : 1055
Reputatie : -2
Subiecte similare
» [Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Zombie
» [Zombie Deathmatch]Tutorial Inregistrare Clasa de Zombie
» Tutorial Instalare Zombie Plague
» Tutorial instalare zombie Swarm 2.4
» Tutorial adaugare model clase zombie
» [Zombie Deathmatch]Tutorial Inregistrare Clasa de Zombie
» Tutorial Instalare Zombie Plague
» Tutorial instalare zombie Swarm 2.4
» Tutorial adaugare model clase zombie
Just4You :: COUNTER-STRIKE :: Tutoriale
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum