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

BunnyHop help


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
10 odpowiedzi w tym temacie

#1 Mafinka

    Pomocny

  • Girl

Reputacja: -2
Mniej niż zer0.

  • Postów:61
  • Lokalizacja:Bratislava
Offline

Napisano 18.05.2012 17:19

Hi!!!
Please, can me someone add to my plugin to the menu a character, that if i choose it i will be have a bunnyhop?

Now i have 2 characters in menu, but i need 3. ...This will be have auto bunny hop...Thank you very much :)
Here is code:

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <chatcolor>
new g_player_class[33]
public plugin_init()
{
register_plugin("Dr_menu by \wMafinka", "1.1", "Mafinka")
RegisterHam(Ham_Spawn, "player", "check", 1)
}
public check(id)
{
static CsTeams: team ; team = cs_get_user_team(id)
if (team == CS_TEAM_T) {
set_task (0.1,"human_menu",id) // Show T menu
}else{
if (team == CS_TEAM_CT) {
set_task (0.1,"human_menu",id) // Show CT menu
}
}
// Bafak
//////////////////////////////////////////////
// NEW if(is_user_alive(id))
//{
//human_menu(id)
//}
/*if(is_user_alive(id))
{*
return PLUGIN_HANDLED;
}
else if(!is_user_alive(id))
{
return PLUGIN_HANDLED;
}
else
{
}
return PLUGIN_CONTINUE;*/
}
public plugin_precache()
{
precache_model("models/player/csg_chucky/csg_chucky.mdl")
precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
}
public human_menu(id)
{
new menu = menu_create("\rClass menu \yby \wMafinka ", "human_menu_handler")
menu_additem(menu, "\wChucky \r(50 Armor)", "1", 0)
menu_additem(menu, "\wIron man \r(300 HP)", "2", 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(!is_user_alive(id) ) return PLUGIN_HANDLED; //puvodne if(is_user_alive(id) )
g_player_class[id] = 1
cs_set_user_model(id,"csg_chucky")
set_user_health(id, 100)
set_user_armor(id, 50)
set_user_gravity(id, 1.00)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gChucky (50 Armor)")
}
case 2:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 2
cs_set_user_model(id,"csg_ironman")
set_user_health(id, 300)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gIronman (300 HP)");
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}


THANKS!!!
  • +
  • -
  • 0

#2 FORMOZA

    KDE User

  • Power User

Reputacja: 411
Wszechobecny

  • Postów:758
  • Imię:Kamil
  • Lokalizacja:Łowicz
Offline

Napisano 18.05.2012 18:28

Please, that's it? :)

Załączony plik  deathrun_menu.sma   3,72 KB  35 Ilość pobrań
  deathrun_menu.amxx
  • +
  • -
  • 1

Diablo Mod V9 Demonic by FORMOZA *Updated 21-12-2013*

Perki by Pas (FORMOZA) cz1 %5BPaczka%5D

Perki by J River (FORMOZA) cz2 %5BPaczka%5D

Dołączona grafika

=================================

Załączony plik  Diablo Install_9.zip   1,2 MB  528 Ilość pobrań

Załączony plik  Perki by Pas DOWNLOAD.zip   127,12 KB  1195 Ilość pobrań


Załączony plik  Perks_by_J_River.zip   178,98 KB  1847 Ilość pobrań

=================================


http://kdemaker.blogspot.com/


#3 Mafinka

    Pomocny

  • Autor tematu
  • Girl

Reputacja: -2
Mniej niż zer0.

  • Postów:61
  • Lokalizacja:Bratislava
Offline

Napisano 18.05.2012 21:42

Thank you very much...Tomorrow i will try it ! And can you tell me, how i add a function here....

Function:

When i choose class for example Chucky, and i want thats when i choosed it a music will play ... Only sound for 10 seconds for example...
Thanks :)

Sorry my englisch
  • +
  • -
  • 0

#4 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1570
Godlike

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

Napisano 19.05.2012 06:30

Hmm, check it I add play sound in a case 0 it's a Chucky class, but i haven't got music on pc, You must find some music. Music path : sound/misc/got_it.mp3
I optimize litte bit this plugin/code ;)
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>

new g_player_class[33]
new player_bh[33]

new const g_Sound[] = "sound/misc/got_it.mp3"

public plugin_init()
{
	register_plugin("Dr_menu by \wMafinka", "1.1", "Mafinka")
	RegisterHam(Ham_Spawn, "player", "check", 1)
	register_forward(FM_PlayerPreThink, "bunnyhop");
}
public check(id)
{
	if(is_user_alive(id))
	{
		if (get_user_team(id) == 1) 
		{        
			set_task (0.1,"human_menu",id) // Show T menu
		}
		else if(get_user_team(id) == 2)
		{
			set_task (0.1,"human_menu",id) // Show CT menu
		}
	}
}
public plugin_precache()
{
	precache_model("models/player/csg_chucky/csg_chucky.mdl")
	precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
	precache_generic(g_Sound)
}
public human_menu(id)
{
	new menu = menu_create("\rClass menu \yby \wMafinka ", "human_menu_handler")
	menu_additem(menu, "\wChucky \r(50 Armor)")
	menu_additem(menu, "\wIron man \r(300 HP)")
	menu_additem(menu, "\wBunny Hop \r(Bh)")
	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
	}
	switch(item)
	{
		case 0:
		{
			g_player_class[id] = 1
			cs_set_user_model(id,"csg_chucky")
			set_user_health(id, 100)
			set_user_armor(id, 50)
			set_user_gravity(id, 1.00)
			client_printc(id, "!t[!gCSGame.cz!] !tVybral si si postavu: !gChucky (50 Armor)") 
			client_cmd(id,"mp3 play %s",g_Sound)
		}
		case 1:
		{
			g_player_class[id] = 2
			cs_set_user_model(id,"csg_ironman")
			set_user_health(id, 300)
			set_user_armor(id, 0)
			set_user_gravity(id, 1.00)
			client_printc(id, "!t[!gCSGame.cz!t] !tVybral si si postavu: !gIronman (300 HP)")  
		}
		case 2:
		{
			g_player_class[id] = 3
			player_bh[id] = 1
			cs_set_user_model(id,"csg_ironman")
			set_user_health(id, 300)
			set_user_armor(id, 0)
			set_user_gravity(id, 1.00)
			client_printc(id, "!t[!gCSGame.cz!t] !tVybral si si postavu: !gBunny Hop (Bh)")  
		}
	}
	menu_destroy(menu)
	return PLUGIN_HANDLED
}

public bunnyhop(id)
{
	if(!player_bh[id])
		return PLUGIN_CONTINUE
	
	if (pev(id, pev_button) & IN_JUMP) {
		new flags = pev(id, pev_flags)
		
		if (flags & FL_WATERJUMP)
			return FMRES_IGNORED;
		if ( pev(id, pev_waterlevel) >= 2 )
			return FMRES_IGNORED;
		if ( !(flags & FL_ONGROUND) )
			return FMRES_IGNORED;
		
		new Float:velocity[3];
		pev(id, pev_velocity, velocity);
		velocity[2] += 250.0;
		set_pev(id, pev_velocity, velocity);
		
		set_pev(id, pev_gaitsequence, 6);
		
	}
	return FMRES_IGNORED;
}
/* It's needless
public RoundStart(id)
{
	for (new id=0; id < 33; id++)
		player_bh[id] = 0 
}
*/ 
// Colour Chat
public client_printc(index, const text[], any:...)
{
	new szMsg[128];
	vformat(szMsg, sizeof(szMsg) - 1, text, 3);
	
	replace_all(szMsg, sizeof(szMsg) - 1, "!g", "^x04");
	replace_all(szMsg, sizeof(szMsg) - 1, "!n", "^x01");
	replace_all(szMsg, sizeof(szMsg) - 1, "!t", "^x03");
	
	message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, index);
	write_byte(index);
	write_string(szMsg);
	message_end();
} 

  • +
  • -
  • 1

If you can dream it, you can do it.


#5 FORMOZA

    KDE User

  • Power User

Reputacja: 411
Wszechobecny

  • Postów:758
  • Imię:Kamil
  • Lokalizacja:Łowicz
Offline

Napisano 19.05.2012 07:25

/* It's needless
public RoundStart(id)


If you turn off 'round start' to be your bunny hop for the next round :P

And it is rather unnecessary, but I'm not sure :)

if (get_user_team(id)



Załączony plik  deathrun_menu.sma   3,1 KB  31 Ilość pobrań
  deathrun_menu.amxx

Użytkownik Pass'es edytował ten post 19.05.2012 07:37

  • +
  • -
  • 0

Diablo Mod V9 Demonic by FORMOZA *Updated 21-12-2013*

Perki by Pas (FORMOZA) cz1 %5BPaczka%5D

Perki by J River (FORMOZA) cz2 %5BPaczka%5D

Dołączona grafika

=================================

Załączony plik  Diablo Install_9.zip   1,2 MB  528 Ilość pobrań

Załączony plik  Perki by Pas DOWNLOAD.zip   127,12 KB  1195 Ilość pobrań


Załączony plik  Perks_by_J_River.zip   178,98 KB  1847 Ilość pobrań

=================================


http://kdemaker.blogspot.com/


#6 Mafinka

    Pomocny

  • Autor tematu
  • Girl

Reputacja: -2
Mniej niż zer0.

  • Postów:61
  • Lokalizacja:Bratislava
Offline

Napisano 19.05.2012 07:45

Yesterday i worked on my plugin and i added new classes
But when i connect to server, menu show me not...why?
But i downloaded new models, in amxmodmenu is this plugin without error
so where is false? Thanks

Here is full .sma

*
1.1 Uplny zaciatok, pridanie funkci a modelov
1.2 Pridany Chat Color
1.3 Opravene modely a Granaty
1.3.5 Pridana classa a lepsie prehladne !!
1.4 ??? Opravit chuckyho, batman inu funkciu, nastavit neviditelnost aby nebola pri dalsom
1.5 ???Pridanie novych postav, aj pre VIP ! Pridat ruky ako Jailbreak, a zvucky
*/
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <chatcolor>

new g_player_class[33]
new player_bh[33]
new const g_Sound[] = "sound/misc/spiderman.mp3"
public plugin_init()
{
register_plugin("Dr_menu by \wMafinka", "1.3.5", "Mafinka")
register_logevent("RoundStart", 2, "0=World triggered", "1=Round_Start")
RegisterHam(Ham_Spawn, "player", "check", 1)
register_forward(FM_PlayerPreThink, "bunnyhop");
}
public check(id)
{
static CsTeams: team ; team = cs_get_user_team(id)
if (team == CS_TEAM_T) {
set_task (0.1,"human_menu",id) // Show T menu
}else{
if (team == CS_TEAM_CT) {
set_task (0.1,"human_menu",id) // Show CT menu
}
}
// Bafak
//////////////////////////////////////////////
// NEW if(is_user_alive(id))
//{
//human_menu(id)
//}
/*if(is_user_alive(id))
{*
return PLUGIN_HANDLED;
}
else if(!is_user_alive(id))
{
return PLUGIN_HANDLED;
}
else
{
}
return PLUGIN_CONTINUE;*/
}
public plugin_precache()
{
precache_model("models/player/csg_chucky/csg_chucky.mdl")
precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
precache_model("models/player/csg_chucky/csg_chucky.mdl")
precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
precache_model("models/player/csg_spiderm/csg_spiderm.mdl")
precache_model("models/player/csg_santa/csg_santa.mdl")
precache_model("models/player/csg_krusty/csg_krusty.mdl")
precache_model("models/player/csg_light/csg_light.mdl")
precache_model("models/player/csg_batman/csg_batmanT.mdl")
precache_model("models/player/csg_ghost/csg_ghost.mdl")
precache_model("models/player/csg_invis/csg_invis.mdl")
precache_generic(g_Sound)
}
public human_menu(id)
{
new menu = menu_create("\rClass menu \yby \wMafinka ", "human_menu_handler")
menu_additem(menu, "\wChucky \r(50 Armor)", "1", 0)
menu_additem(menu, "\wIron man \r(300 HP)", "2", 0)
menu_additem(menu, "\wSpider man \r(Gravity)", "3", 0)
menu_additem(menu, "\wSanta Claus \r(Frost He X 5)", "4", 0)
menu_additem(menu, "\wKrusty\r(He Grenade X 5)", "5", 0)
menu_additem(menu, "\wChris Fehn \r(Smoke X 5 + Light Aura)", "6", 0)
menu_additem(menu, "\wInvisibler \r(Neviditelnost 1/2) \y[VIP]", "7", ADMIN_LEVEL_H) // NEVIDITELNOST NIECO INE
menu_additem(menu, "\wGhost \r(Rychlost) \y[VIP]", "8", ADMIN_LEVEL_H)
menu_additem(menu, "\wBatman \r(BunnyHop)\y[VIP]", "9", ADMIN_LEVEL_H)
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(!is_user_alive(id) ) return PLUGIN_HANDLED; //puvodne if(is_user_alive(id) )
g_player_class[id] = 1
cs_set_user_model(id,"csg_chucky")
set_user_health(id, 100)
set_user_armor(id, 50)
set_user_gravity(id, 1.00)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gChucky (50 Armor)")
}
case 2:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 2
cs_set_user_model(id,"csg_ironman")
set_user_health(id, 300)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gIronman (300 HP)");
}
case 3:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED
g_player_class[id] = 3
cs_set_user_model(id,"csg_spiderm")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 0.50)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gSpiderman (Gravity)");
client_cmd(id,"mp3 play %s",g_Sound)
}
case 4:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 4
cs_set_user_model(id,"santa")
set_user_health(id, 100)
set_user_armor(id, 30)
set_user_gravity(id, 1.00)
give_item(id, "weapon_flashbang")
cs_set_user_bpammo(id, CSW_FLASHBANG, 5)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gSanta Claus (+5 Frost flash)");
}
case 5:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 5
cs_set_user_model(id,"csg_krusty")
set_user_health(id, 100)
set_user_armor(id, 40)
set_user_gravity(id, 1.00)
give_item(id, "weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, 5)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gKrusty (+5 He Granatov)")
}
case 6:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 6
cs_set_user_model(id,"csg_light")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
give_item(id, "weapon_smokegrenade")
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 5)
set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gChris Fehn Slipknot(+5 Smoke + Light Aura)");
}
case 7:
{
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H) ) return PLUGIN_HANDLED;
g_player_class[id] = 7
cs_set_user_model(id,"csg_invis") // !!!!
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,127)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu:: !gNormal(Neviditelnost 1/2)");
}
case 8:
{
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H) ) return PLUGIN_HANDLED;
g_player_class[id] = 8
cs_set_user_model(id,"csg_ghost")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
set_user_maxspeed(id, 400.0)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gGhost (Rychlost)");
}
case 9:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
player_bh[id] = 1
cs_set_user_model(id,"csg_batman")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gBatman (Bunny Hop)")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public bunnyhop(id)
{
if(!player_bh[id])
return PLUGIN_CONTINUE

if (pev(id, pev_button) & IN_JUMP) {
new flags = pev(id, pev_flags)

if (flags & FL_WATERJUMP)
return FMRES_IGNORED;
if ( pev(id, pev_waterlevel) >= 2 )
return FMRES_IGNORED;
if ( !(flags & FL_ONGROUND) )
return FMRES_IGNORED;

new Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] += 250.0;
set_pev(id, pev_velocity, velocity);

set_pev(id, pev_gaitsequence, 6);

}
return FMRES_IGNORED;
}
/*public RoundStart(id)
{
for (new id=0; id < 33; id++)
player_bh[id] = 0
}
*/
/*Colour Chat
client_printc(index, const text[], any:...)
{
new szMsg[128];
vformat(szMsg, sizeof(szMsg) - 1, text, 3);
replace_all(szMsg, sizeof(szMsg) - 1, "!g", "^x04");
replace_all(szMsg, sizeof(szMsg) - 1, "!n", "^x01");
replace_all(szMsg, sizeof(szMsg) - 1, "!t", "^x03");
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, index);
write_byte(index);
write_string(szMsg);
message_end();
}
*/

  • +
  • -
  • 0

#7 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1570
Godlike

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

Napisano 19.05.2012 07:54

Delete it :
register_logevent("RoundStart", 2, "0=World triggered", "1=Round_Start")
From plugin_init

If you turn off 'round start' to be your bunny hop for the next round

No, no when you choose this class, you will have bunny hop for a round,in result you will have it for only one round,someone who choose want bunny hop,should have this bunny for all map ;)
  • +
  • -
  • 0

If you can dream it, you can do it.


#8 FORMOZA

    KDE User

  • Power User

Reputacja: 411
Wszechobecny

  • Postów:758
  • Imię:Kamil
  • Lokalizacja:Łowicz
Offline

Napisano 19.05.2012 07:55

A good speedkil, I made ​​a mistake :D

/*
1.1 Uplny zaciatok, pridanie funkci a modelov
1.2 Pridany Chat Color
1.3 Opravene modely a Granaty
1.3.5 Pridana classa a lepsie prehladne !!
1.4 ??? Opravit chuckyho, batman inu funkciu, nastavit neviditelnost aby nebola pri dalsom
1.5 ???Pridanie novych postav, aj pre VIP ! Pridat ruky ako Jailbreak, a zvucky
*/
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <chatcolor>

new g_player_class[33]
new player_bh[33]
new const g_Sound[] = "sound/misc/spiderman.mp3"
public plugin_init()
{
register_plugin("Dr_menu by \wMafinka", "1.3.5", "Mafinka")
RegisterHam(Ham_Spawn,"player","player_spawn",1);
register_forward(FM_PlayerPreThink, "bunnyhop");
}
public player_spawn(id)
{
player_bh[id] = 0
if(is_user_alive(id))
set_task(0.5,"human_menu",id);
}
public plugin_precache()
{
precache_model("models/player/csg_chucky/csg_chucky.mdl")
precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
precache_model("models/player/csg_chucky/csg_chucky.mdl")
precache_model("models/player/csg_ironman/csg_ironmanT.mdl")
precache_model("models/player/csg_spiderm/csg_spiderm.mdl")
precache_model("models/player/csg_santa/csg_santa.mdl")
precache_model("models/player/csg_krusty/csg_krusty.mdl")
precache_model("models/player/csg_light/csg_light.mdl")
precache_model("models/player/csg_batman/csg_batmanT.mdl")
precache_model("models/player/csg_ghost/csg_ghost.mdl")
precache_model("models/player/csg_invis/csg_invis.mdl")
precache_generic(g_Sound)
}
public human_menu(id)
{
new menu = menu_create("\rClass menu \yby \wMafinka ", "human_menu_handler")
menu_additem(menu, "\wChucky \r(50 Armor)", "1", 0)
menu_additem(menu, "\wIron man \r(300 HP)", "2", 0)
menu_additem(menu, "\wSpider man \r(Gravity)", "3", 0)
menu_additem(menu, "\wSanta Claus \r(Frost He X 5)", "4", 0)
menu_additem(menu, "\wKrusty\r(He Grenade X 5)", "5", 0)
menu_additem(menu, "\wChris Fehn \r(Smoke X 5 + Light Aura)", "6", 0)
menu_additem(menu, "\wInvisibler \r(Neviditelnost 1/2) \y[VIP]", "7", ADMIN_LEVEL_H) // NEVIDITELNOST NIECO INE
menu_additem(menu, "\wGhost \r(Rychlost) \y[VIP]", "8", ADMIN_LEVEL_H)
menu_additem(menu, "\wBatman \r(BunnyHop)\y[VIP]", "9", ADMIN_LEVEL_H)
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(!is_user_alive(id) ) return PLUGIN_HANDLED; //puvodne if(is_user_alive(id) )
g_player_class[id] = 1
cs_set_user_model(id,"csg_chucky")
set_user_health(id, 100)
set_user_armor(id, 50)
set_user_gravity(id, 1.00)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gChucky (50 Armor)")
}
case 2:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 2
cs_set_user_model(id,"csg_ironman")
set_user_health(id, 300)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gIronman (300 HP)");
}
case 3:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED
g_player_class[id] = 3
cs_set_user_model(id,"csg_spiderm")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 0.50)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gSpiderman (Gravity)");
client_cmd(id,"mp3 play %s",g_Sound)
}
case 4:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 4
cs_set_user_model(id,"santa")
set_user_health(id, 100)
set_user_armor(id, 30)
set_user_gravity(id, 1.00)
give_item(id, "weapon_flashbang")
cs_set_user_bpammo(id, CSW_FLASHBANG, 5)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gSanta Claus (+5 Frost flash)");
}
case 5:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 5
cs_set_user_model(id,"csg_krusty")
set_user_health(id, 100)
set_user_armor(id, 40)
set_user_gravity(id, 1.00)
give_item(id, "weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, 5)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gKrusty (+5 He Granatov)")
}
case 6:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
g_player_class[id] = 6
cs_set_user_model(id,"csg_light")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
give_item(id, "weapon_smokegrenade")
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 5)
set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gChris Fehn Slipknot(+5 Smoke + Light Aura)");
}
case 7:
{
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H) ) return PLUGIN_HANDLED;
g_player_class[id] = 7
cs_set_user_model(id,"csg_invis") // !!!!
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,127)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu:: !gNormal(Neviditelnost 1/2)");
}
case 8:
{
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H) ) return PLUGIN_HANDLED;
g_player_class[id] = 8
cs_set_user_model(id,"csg_ghost")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
set_user_maxspeed(id, 400.0)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gGhost (Rychlost)");
}
case 9:
{
if(!is_user_alive(id) ) return PLUGIN_HANDLED;
player_bh[id] = 1
cs_set_user_model(id,"csg_batman")
set_user_health(id, 100)
set_user_armor(id, 0)
set_user_gravity(id, 1.00)
//color_chat(id, "!team[!gCSGame.cz!team] !teamVybral si si postavu: !gBatman (Bunny Hop)")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public bunnyhop(id)
{
if(!player_bh[id])
return PLUGIN_CONTINUE

if (pev(id, pev_button) & IN_JUMP) {
new flags = pev(id, pev_flags)

if (flags & FL_WATERJUMP)
return FMRES_IGNORED;
if ( pev(id, pev_waterlevel) >= 2 )
return FMRES_IGNORED;
if ( !(flags & FL_ONGROUND) )
return FMRES_IGNORED;

new Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] += 250.0;
set_pev(id, pev_velocity, velocity);

set_pev(id, pev_gaitsequence, 6);

}
return FMRES_IGNORED;
}

Użytkownik Pass'es edytował ten post 19.05.2012 07:59

  • +
  • -
  • 0

Diablo Mod V9 Demonic by FORMOZA *Updated 21-12-2013*

Perki by Pas (FORMOZA) cz1 %5BPaczka%5D

Perki by J River (FORMOZA) cz2 %5BPaczka%5D

Dołączona grafika

=================================

Załączony plik  Diablo Install_9.zip   1,2 MB  528 Ilość pobrań

Załączony plik  Perki by Pas DOWNLOAD.zip   127,12 KB  1195 Ilość pobrań


Załączony plik  Perks_by_J_River.zip   178,98 KB  1847 Ilość pobrań

=================================


http://kdemaker.blogspot.com/


#9 Mafinka

    Pomocny

  • Autor tematu
  • Girl

Reputacja: -2
Mniej niż zer0.

  • Postów:61
  • Lokalizacja:Bratislava
Offline

Napisano 19.05.2012 08:01

Thanks guys, your are BEST! I am only beginner so i cant this all :)

And how i remove all this functions (gravity, invisible, bunnyhop) ? When the round end,
They will not have this functions :)
  • +
  • -
  • 0

#10 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1570
Godlike

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

Napisano 19.05.2012 08:07

When they die you can remove this functions :
//plugin init
register_event("DeathMsg", "kill", "a")
//end
public kill()
{
	new iVictim = read_data(2)
	if(is_user_connected(iVictim))
	{
		 player_bh[iVictim] = 0
		 set_user_maxspeed(iVictim, 250.0)
		 set_user_gravity(iVictim, 0.8)
	}
	return PLUGIN_CONTINUE
}

  • +
  • -
  • 0

If you can dream it, you can do it.


#11 FORMOZA

    KDE User

  • Power User

Reputacja: 411
Wszechobecny

  • Postów:758
  • Imię:Kamil
  • Lokalizacja:Łowicz
Offline

Napisano 19.05.2012 08:08

Add a module (since it must be change invisible :) )
#include <engine>


If you remove:

Example:
This

player_function[id] = 0

Add to:
public player_spawn(id)
{
  
}
This is already done:
public player_spawn(id)
{
if(is_user_alive(id)) //Check alive
{
player_bh[id] = 0 //Remove Bh
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); //Remove invisible
set_user_gravity(id, 1.0) //Set default gravity
set_user_maxspeed(id, 250.0) //Remove speed
set_task(0.5,"human_menu",id); //Show menu
}
}


Hehe, Just as good now? :D
speedkill (19.05.2012 08:11):
But first check, if(is_user_alive(id)) ;)

Użytkownik Pass'es edytował ten post 19.05.2012 08:18

  • +
  • -
  • 0

Diablo Mod V9 Demonic by FORMOZA *Updated 21-12-2013*

Perki by Pas (FORMOZA) cz1 %5BPaczka%5D

Perki by J River (FORMOZA) cz2 %5BPaczka%5D

Dołączona grafika

=================================

Załączony plik  Diablo Install_9.zip   1,2 MB  528 Ilość pobrań

Załączony plik  Perki by Pas DOWNLOAD.zip   127,12 KB  1195 Ilość pobrań


Załączony plik  Perks_by_J_River.zip   178,98 KB  1847 Ilość pobrań

=================================


http://kdemaker.blogspot.com/





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

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