[Zombie Deathmatch]Tutorial Inregistrare Extra-Iteme Oameni

Tutoriale pentru Counter-Strike aprobate de eXtream!

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

07 Sep 2010, 12:40

Counter Strike Zombie Deathmatch
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:

Code: Select all

#include <amxmodx> 
#include <zombie_deathmatch>
Inregistram o variabila globala:

Code: Select all

new g_new_human_item
Inregistram extra-itemul in meniu:

Code: Select all

public plugin_init()
{       
	g_new_human_item = zd_register_human_item( "New Human Item", 3000)
           /* 3000 reprezinta pretul */
}
Stabilim atributele extra-itemelor:

Code: Select all

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:
| Afiseaza codul
#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!")
    	}
}
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
Post Reply

Return to “Tutoriale”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests