[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:
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]
Salut!O sa va arat cat de simplu puteti crea clase de zombie pentru modul Zombie Deathmatch.
Includem
- Cod:
#include <amxmodx>
#include <fun>
#include <zombie_deathmatch>
- Cod:
new g_new_class_zombie
- Cod:
public plugin_init()
{
g_new_class_zombie = zd_register_zombie_class("New Zombie Class")
}
- 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]