4en3rgY Romania
[Zombie Deathmatch]Tutorial Inregistrare Clasa de Zombie 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 Clasa de Zombie

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 clase de zombie pentru modul Zombie Deathmatch.
Includem , si celelalte module necesare:
Cod:
#include <amxmodx>
#include <fun>
#include <zombie_deathmatch>
Inregistram o variabila globala:
Cod:
new g_new_class_zombie
Inregistram clasa de zombie in meniu:
Cod:
public plugin_init()
{     
   g_new_class_zombie = zd_register_zombie_class("New Zombie Class")
}
Stabilim atributele claselor de zombie:
Cod:
public zd_zombie_class_selected(iPlayer, iItemIndex)
{
       if(g_new_class_zombie == iItemIndex)
       {
      set_user_health(iPlayer, 2500)
      set_user_maxspeed(iPlayer, 230.0)
      client_print(iPlayer, print_chat, "[Zombie Deathmatch] This is a new zombie class!")
       }
}

In final va arata asa:
[sursa=]#include
#include
#include

new g_new_class_zombie

public plugin_init()
{
g_new_class_zombie = zd_register_zombie_class("New Zombie Class")
}

public zd_zombie_class_selected(iPlayer, iItemIndex)
{
if(g_new_class_zombie == iItemIndex)
{
set_user_health(iPlayer, 2500)
set_user_maxspeed(iPlayer, 230.0)
client_print(iPlayer, print_chat, "[Zombie Deathmatch] This is a new zombie class!")
}
}[/sursa]

bozioru

bozioruMembru

interesant

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.