4en3rgY Romania
[Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Oameni 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

[Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Oameni

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

Viorel

ViorelFondator

[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 , si celelalte module necesare:
Cod:
#include <amxmodx>
#include <zombie_deathmatch>
Inregistram o variabila globala:
Cod:
new g_new_human_item
Inregistram extra-itemul in meniu:
Cod:
public plugin_init()
{     
   g_new_human_item = zd_register_human_item( "New Human Item", 3000)
          /* 3000 reprezinta pretul */
}
Stabilim atributele extra-itemelor:
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!")
       }
}
In final va arata asa:
[sursa=]#include
#include

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]

bozioru

bozioruMembru

marfa xd

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

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

 

Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.