Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

menu klas ludzi na zm


  • Zamknięty Temat jest zamknięty
9 odpowiedzi w tym temacie

#1 K1cK_PL

    Wszechpomocny

  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:315
  • Lokalizacja:Gdynia
Offline

Napisano 07.02.2011 12:30

Witam mam taki problem z tym ze menu samo sie pokazuje po czasie na hudzie a ja chce zeby to menu wyswietlalo sie po napisaniu /klasa (tak jak na codzie).
a i jeszcze jak ktos moze to neich zrobic cos takeigo ze klasy 5 moze uzywac tylko vip czyli musi posiadac flage T.

/* 
Human Classes for zombie plague, menu for classes automatically invoked 8 seconds after player spawn
This plug is far from complete, please help with further development of it since it may have some undesired
results on gameplay. You can edit this plug however it fit your needs.

Here is TO DO list:

1. Make B key invoke human class menu
2. Make user choose class only once per round (could be limited with round timer or some other method) - done
3. Make user choice remember thru whole map time, just like it was done for zombies
4. Changing of models is not implemented yet due to numerous bugs and uncertain effects
5. For now, there are 7 classes only. If you have idea for more classes, make a request
6. Make classes buyable for ammo packs
7. Bots support
*/

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>


new g_player_class[33]

public plugin_init()
{
register_plugin("[ZP] Addon: Human Classes", "1.1", "fiendshard")
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
register_clcmd("say /klasa","klasa")
register_logevent("runda",2,"1=Round_Start")
}

public fwHamPlayerSpawnPost(id)

{
set_task(get_cvar_float("zp_delay")+5.0, "ClCmdSelectModel",id)
}

public ClCmdSelectModel(id, menuid)
{
if(zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id))
{
return PLUGIN_HANDLED;
}

else if(!is_user_alive(id))
{
return PLUGIN_HANDLED;
}
else
{
human_menu(id)
}
return PLUGIN_CONTINUE;
}

public human_menu(id)
{
new menu = menu_create("\rChoose Your Human Class:", "human_menu_handler")
menu_additem(menu, "\wZoey (100 Armor)", "1", 0)
menu_additem(menu, "\wFrancis (225 HP)", "2", 0)
menu_additem(menu, "\wEllias (Niska Gravitacja)", "3", 0)
menu_additem(menu, "\wLouis (2fleshe i 50armora)", "4", 0)
menu_additem(menu, "\wWybraniec (VIP)", "5", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)

}
public human_menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 1
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 100)
set_user_gravity(id, 1.00)
client_cmd(id,"say /klasa")
client_print(id, print_chat,"[ZP] Ta klasa ma: 100 Armora")
}
case 2:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 2
set_user_health(id, 225)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
client_print(id, print_chat,"[ZP] Ta klasa ma 225hp ");
}
case 3:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 3
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 0)
set_user_gravity(id, 0.60)
client_print(id, print_chat,"[ZP] Ta klasa ma mniejsza grawitacje");
}
case 4:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 4
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 50)
set_user_gravity(id, 1.00)
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
client_print(id, print_chat,"[ZP] Ta klasa ma 2 FLASHE 50armora");
}
case 5:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 5
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 150)
set_user_gravity(id, 0.7)
cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
client_print(id, print_chat,"[ZP] To klasa tylko dla V.I.P. Ma ona 2 he 150 armora i mniejsza grawitacje")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}


Dodano 07 luty 2011 - 19:35:
pomoze ktos?

Dodano 07 luty 2011 - 21:14:
refresh..

Dodano 08 luty 2011 - 16:08:
refresh..
  • +
  • -
  • 0

#2 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1570
Godlike

  • Postów:2733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 08.02.2011 18:30

prosze bardzo ;) nie wiedziałem jak sie nazywa flaga T wiec dałem na flage a
/* 
Human Classes for zombie plague, menu for classes automatically invoked 8 seconds after player spawn
This plug is far from complete, please help with further development of it since it may have some undesired
results on gameplay. You can edit this plug however it fit your needs.

Here is TO DO list:

1. Make B key invoke human class menu
2. Make user choose class only once per round (could be limited with round timer or some other method) - done
3. Make user choice remember thru whole map time, just like it was done for zombies
4. Changing of models is not implemented yet due to numerous bugs and uncertain effects
5. For now, there are 7 classes only. If you have idea for more classes, make a request
6. Make classes buyable for ammo packs
7. Bots support
*/

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>


new g_player_class[33]

public plugin_init()
{
        register_plugin("[ZP] Addon: Human Classes", "1.1", "fiendshard")
        RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
        register_clcmd("say /klasa","klasa")
        register_logevent("runda",2,"1=Round_Start")
}

public fwHamPlayerSpawnPost(id)

{
        set_task(get_cvar_float("zp_delay")+5.0, "ClCmdSelectModel",id)
}

public ClCmdSelectModel(id, menuid)
{
        if(zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id))
        {
                return PLUGIN_HANDLED;
        }

        else if(!is_user_alive(id))
        {
                return PLUGIN_HANDLED;
        }
        else
        {
                human_menu(id)
        }
        return PLUGIN_CONTINUE;
}

public human_menu(id)
{
  new menu = menu_create("\rChoose Your Human Class:", "human_menu_handler")
  menu_additem(menu, "\wZoey (100 Armor)", "1", ADMIN_IMMUNITY)
  menu_additem(menu, "\wFrancis (225 HP)", "2", ADMIN_IMMUNITY)
  menu_additem(menu, "\wEllias (Niska Gravitacja)", "3", ADMIN_IMMUNITY)
  menu_additem(menu, "\wLouis (2fleshe i 50armora)", "4", ADMIN_IMMUNITY)
  menu_additem(menu, "\wWybraniec (VIP)", "5", ADMIN_IMMUNITY)
  menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  menu_display(id, menu, 0)
 
}
public human_menu_handler(id, menu, item)
{
 if( item == MENU_EXIT )
 {
  menu_destroy(menu)
  return PLUGIN_HANDLED
 }
 new data[6], iName[64]
 new access, callback
 menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)
 new key = str_to_num(data)
 switch(key)
 {
  case 1:
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 1
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 100)
   set_user_gravity(id, 1.00)
   client_cmd(id,"say /klasa")
   client_print(id, print_chat,"[ZP] Ta klasa ma: 100 Armora")
  }
  case 2:
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 2
   set_user_health(id, 225)
   set_user_armor(id, 0)
   set_user_gravity(id, 1.00)
   client_print(id, print_chat,"[ZP] Ta klasa ma 225hp ");
  }
  case 3: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 3
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 0)
   set_user_gravity(id, 0.60)
   client_print(id, print_chat,"[ZP] Ta klasa ma mniejsza grawitacje");
  }
  case 4: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 4
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 50)
   set_user_gravity(id, 1.00)
   cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
   client_print(id, print_chat,"[ZP] Ta klasa ma 2 FLASHE 50armora");
  }
  case 5: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 5
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 150)
   set_user_gravity(id, 0.7)
   cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
   client_print(id, print_chat,"[ZP] To klasa tylko dla V.I.P. Ma ona 2 he 150 armora i mniejsza grawitacje")
  }
 }
 menu_destroy(menu)
 return PLUGIN_HANDLED
}

Użytkownik speedkill123 edytował ten post 08.02.2011 18:31

  • +
  • -
  • 0

If you can dream it, you can do it.


#3 K1cK_PL

    Wszechpomocny

  • Autor tematu
  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:315
  • Lokalizacja:Gdynia
Offline

Napisano 08.02.2011 19:07

thx juz sprawdzam..

Dodano 08 luty 2011 - 19:15:
niedziala. nadal jest automatycznie i jak napisze /klasa to nic sie niedzieje.
  • +
  • -
  • 0

#4 Lukasz5

    Godlike

  • Power User

Reputacja: 276
Wszechwidzący

  • Postów:1414
  • Imię:Łukasz
  • Lokalizacja:C: / WINDOWS
Offline

Napisano 08.02.2011 22:03

Robisz komendę /klasa, a nigdzie nie ma do niej publica... :/
Więc to jest tak jakby jej wogóle. nie było... :)

register_clcmd("say /klasa","klasa")

Użytkownik Lukasz5 edytował ten post 08.02.2011 22:04

  • +
  • -
  • 0

#5 K1cK_PL

    Wszechpomocny

  • Autor tematu
  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:315
  • Lokalizacja:Gdynia
Offline

Napisano 09.02.2011 09:13

aha a zrobilbys mi to ;D
  • +
  • -
  • 0

#6 cManiac

    Życzliwy

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:36
  • Imię:Error # 48
  • Lokalizacja:Error # 47
Offline

Napisano 09.02.2011 19:36

Spróbuj zamienić to:

register_clcmd("say /klasa","klasa")

Na:
register_clcmd("say /klasa","human_menu")

  • +
  • -
  • 0

#7 K1cK_PL

    Wszechpomocny

  • Autor tematu
  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:315
  • Lokalizacja:Gdynia
Offline

Napisano 10.02.2011 19:41

ok juz patrze

Dodano 10 luty 2011 - 20:15:
no w pewnym siensie dziala ale jabym chcial do tego zeby tobylo tylko na 1 runde albo na 1 mape . zeby mozna bylo tak wybrac albo raz na runde albo raz na mape. bo teraz np mozna sobie ciagle brac.

Dodano 11 luty 2011 - 20:32:
pomoze ktos?
  • +
  • -
  • 0

#8 Gufinsky

    oh, srsly?

  • Power User

Reputacja: 266
Wszechwidzący

  • Postów:591
  • GG:
  • Steam:steam
  • Imię:Jakub
  • Lokalizacja:localhost
Offline

Napisano 11.02.2011 21:01

Co rundę: (Nie testowane)

/* 
Human Classes for zombie plague, menu for classes automatically invoked 8 seconds after player spawn
This plug is far from complete, please help with further development of it since it may have some undesired
results on gameplay. You can edit this plug however it fit your needs.

Here is TO DO list:

1. Make B key invoke human class menu
2. Make user choose class only once per round (could be limited with round timer or some other method) - done
3. Make user choice remember thru whole map time, just like it was done for zombies
4. Changing of models is not implemented yet due to numerous bugs and uncertain effects
5. For now, there are 7 classes only. If you have idea for more classes, make a request
6. Make classes buyable for ammo packs
7. Bots support
*/

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>

new runda
new g_player_class[33]

public plugin_init()
{
        register_plugin("[ZP] Addon: Human Classes", "1.1", "fiendshard")
        RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
        register_clcmd("say /klasa","klasa")
        register_logevent("runda",2,"1=Round_Start")
        RegisterHam(Ham_Spawn, "player", "zeruj", 1);
}

public fwHamPlayerSpawnPost(id)

{
        set_task(get_cvar_float("zp_delay")+5.0, "ClCmdSelectModel",id)
}

public ClCmdSelectModel(id, menuid)
{
        if(zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id))
        {
                return PLUGIN_HANDLED;
        }

        else if(!is_user_alive(id))
        {
                return PLUGIN_HANDLED;
        }
        else
        {
                human_menu(id)
        }
        return PLUGIN_CONTINUE;
}

public human_menu(id)
{
  if(runda==0) 
  new menu = menu_create("\rChoose Your Human Class:", "human_menu_handler")
  menu_additem(menu, "\wZoey (100 Armor)", "1");
  menu_additem(menu, "\wFrancis (225 HP)", "2",);
  menu_additem(menu, "\wEllias (Niska Gravitacja)", "3");
  menu_additem(menu, "\wLouis (2fleshe i 50armora)", "4");
  menu_additem(menu, "\wWybraniec (VIP)", "5", ADMIN_LEVEL_H);
  menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  menu_display(id, menu, 0)
  runda=1;
}
else
client_print(id,print_chat,"Klase mozesz zmienic raz na runde!")
}
public human_menu_handler(id, menu, item)
{
 if( item == MENU_EXIT )
 {
  menu_destroy(menu)
  return PLUGIN_HANDLED
 }
 new data[6], iName[64]
 new access, callback
 menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)
 new key = str_to_num(data)
 switch(key)
 {
  case 1:
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 1
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 100)
   set_user_gravity(id, 1.00)
   client_cmd(id,"say /klasa")
   client_print(id, print_chat,"[ZP] Ta klasa ma: 100 Armora")
  }
  case 2:
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 2
   set_user_health(id, 225)
   set_user_armor(id, 0)
   set_user_gravity(id, 1.00)
   client_print(id, print_chat,"[ZP] Ta klasa ma 225hp ");
  }
  case 3: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 3
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 0)
   set_user_gravity(id, 0.60)
   client_print(id, print_chat,"[ZP] Ta klasa ma mniejsza grawitacje");
  }
  case 4: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 4
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 50)
   set_user_gravity(id, 1.00)
   cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
   client_print(id, print_chat,"[ZP] Ta klasa ma 2 FLASHE 50armora");
  }
  case 5: 
  {
   if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
   g_player_class[id] = 5
   set_user_health(id, get_cvar_num("zp_human_health"))
   set_user_armor(id, 150)
   set_user_gravity(id, 0.7)
   cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
   client_print(id, print_chat,"[ZP] To klasa tylko dla V.I.P. Ma ona 2 he 150 armora i mniejsza grawitacje")
  }
 }
 menu_destroy(menu)
 return PLUGIN_HANDLED
}
public zeruj(id)
{
runda=0
}

  • +
  • -
  • 0

#9 K1cK_PL

    Wszechpomocny

  • Autor tematu
  • Użytkownik

Reputacja: 18
Początkujący

  • Postów:315
  • Lokalizacja:Gdynia
Offline

Napisano 11.02.2011 23:42

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

zp_clas.sma(63) : error 003: declaration of a local variable must appear in a compound block
zp_clas.sma(63) : error 017: undefined symbol "menu"
zp_clas.sma(64) : error 017: undefined symbol "menu"
zp_clas.sma(64) : warning 215: expression has no effect
zp_clas.sma(64) : warning 215: expression has no effect
zp_clas.sma(64) : error 001: expected token: ";", but found ")"
zp_clas.sma(64) : error 029: invalid expression, assumed zero
zp_clas.sma(64) : fatal error 107: too many error messages on one line

Compilation aborted.
6 Errors.

Dodano 13 luty 2011 - 19:47:
pomoze ktos?

Dodano 13 luty 2011 - 22:01:
Jak cos to dalem inc w zalaczniku jak ktos niema.

Dodano 15 luty 2011 - 20:39:
da rade ktos pomoc?

Załączone pliki


  • +
  • -
  • 0

#10 FreZZy

    Guru

  • Zbanowany

Reputacja: 210
Profesjonalista

  • Postów:716
  • GG:
  • Imię:Paweł
  • Lokalizacja:Wwa
Offline

Napisano 15.02.2011 21:11

/* 
Human Classes for zombie plague, menu for classes automatically invoked 8 seconds after player spawn
This plug is far from complete, please help with further development of it since it may have some undesired
results on gameplay. You can edit this plug however it fit your needs.

Here is TO DO list:

1. Make B key invoke human class menu
2. Make user choose class only once per round (could be limited with round timer or some other method) - done
3. Make user choice remember thru whole map time, just like it was done for zombies
4. Changing of models is not implemented yet due to numerous bugs and uncertain effects
5. For now, there are 7 classes only. If you have idea for more classes, make a request
6. Make classes buyable for ammo packs
7. Bots support
*/

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>

new runda
new g_player_class[33]
new menu

public plugin_init()
{
register_plugin("[ZP] Addon: Human Classes", "1.1", "fiendshard")
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
register_clcmd("say /klasa","human_menu")
register_logevent("runda",2,"1=Round_Start")
RegisterHam(Ham_Spawn, "player", "zeruj", 1);
}

public fwHamPlayerSpawnPost(id)

{
set_task(get_cvar_float("zp_delay")+5.0, "ClCmdSelectModel",id)
}

public ClCmdSelectModel(id, menuid)
{
if(zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id))
{
return PLUGIN_HANDLED;
}

else if(!is_user_alive(id))
{
return PLUGIN_HANDLED;
}
else
{
human_menu(id)
}
return PLUGIN_CONTINUE;
}

public human_menu(id)
{
if(runda==0)
{
menu = menu_create("\rChoose Your Human Class:", "human_menu_handler")
menu_additem(menu, "\wZoey (100 Armor)", "1");
menu_additem(menu, "\wFrancis (225 HP)", "2",);
menu_additem(menu, "\wEllias (Niska Gravitacja)", "3");
menu_additem(menu, "\wLouis (2fleshe i 50armora)", "4");
menu_additem(menu, "\wWybraniec (VIP)", "5", ADMIN_LEVEL_H);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
runda=1;
}
else
client_print(id,print_chat,"Klase mozesz zmienic raz na runde!")
}
public human_menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 1
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 100)
set_user_gravity(id, 1.00)
client_cmd(id,"say /klasa")
client_print(id, print_chat,"[ZP] Ta klasa ma: 100 Armora")
}
case 2:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 2
set_user_health(id, 225)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
client_print(id, print_chat,"[ZP] Ta klasa ma 225hp ");
}
case 3:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 3
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 0)
set_user_gravity(id, 0.60)
client_print(id, print_chat,"[ZP] Ta klasa ma mniejsza grawitacje");
}
case 4:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 4
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 50)
set_user_gravity(id, 1.00)
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
client_print(id, print_chat,"[ZP] Ta klasa ma 2 FLASHE 50armora");
}
case 5:
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
g_player_class[id] = 5
set_user_health(id, get_cvar_num("zp_human_health"))
set_user_armor(id, 150)
set_user_gravity(id, 0.7)
cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
client_print(id, print_chat,"[ZP] To klasa tylko dla V.I.P. Ma ona 2 he 150 armora i mniejsza grawitacje")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public zeruj(id)
{
runda=0
}

Użytkownik FreZZy edytował ten post 15.02.2011 21:52





Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych