Skocz do zawartości

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
 

PPITBUL**** - zdjęcie

PPITBUL****

Rejestracja: 06.01.2011
Aktualnie: Nieaktywny
Poza forum Ostatnio: 06.10.2013 08:15
-----

#354541 Przerobienie pluginu vip

Napisane przez grzesiu131 w 27.01.2012 21:43

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Vip_guns"
#define VERSION "1.0"
#define AUTHOR "aQeR"

public plugin_init()

{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /bronie", "menu_info")
register_clcmd("say /grawitacja", "menu_info2")
}
public menu_info(id)
{
if (get_user_flags(id) & ADMIN_CHAT)

{
new menu = menu_create("Bronie Vip", "wybieranie")

menu_additem(menu, "AK47 + DEAGLE + HE", "1")
menu_additem(menu, "M4A1 + DEAGLE + HE", "2")
menu_additem(menu, "AWP + DEAGLE + HE", "3")

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)

menu_display(id, menu, 0)

}
}
public menu_info2(id)
{
if (get_user_flags(id) & ADMIN_CHAT)

{
new menu = menu_create("Bronie Vip", "wybieranie2")

menu_additem(menu, "750 GRAVITY", "1")
menu_additem(menu, "720 GRAVITY", "2")
menu_additem(menu, "700 GRAVITY", "3")
menu_additem(menu, "650 GRAVITY", "3")

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)

menu_display(id, menu, 0)

}
}
public wybieranie2(id, menu, item)
{
if (item == MENU_EXIT)

{
menu_destroy(menu)
return PLUGIN_HANDLED

}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
// dodaje wybor pod klawisze
new key = str_to_num(data)
// teraz ustawiamy co ma wykonywac itp kazdy klawisz
switch(key + 1)

{
case 1:

{
set_user_gravity(id, 750.0);
}

case 2:

{
set_user_gravity(id, 720.0)

}

case 3:

{
set_user_gravity(id, 700.0)

}
case 4:
{
set_user_gravity(id, 650.0)
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public wybieranie(id, menu, item)
{
if (item == MENU_EXIT)

{
menu_destroy(menu)
return PLUGIN_HANDLED

}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
// dodaje wybor pod klawisze
new key = str_to_num(data)
// teraz ustawiamy co ma wykonywac itp kazdy klawisz
switch(key + 1)

{
case 1:

{
client_print(id, print_center, "Wzioles AK47 + DEAGLE + HE")
give_item(id,"weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 90)
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 50)
give_item(id, "weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED

}

case 2:

{
client_print(id, print_center, "Wzioles M4A1 + DEAGLE + HE")
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
give_item(id, "weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_CONTINUE

}

case 3:

{
client_print(id, print_center, "Wzioles AWP + DEAGLE + HE")
give_item(id,"weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 30)
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 50)
give_item(id, "weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED

}

}
menu_destroy(menu)
return PLUGIN_HANDLED
}

  • +
  • -
  • 1


#204609 Pokazuje hp zombi

Napisane przez b0niek w 09.01.2011 20:38

Proszę. Sprawdzone, działa

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#define IsPlayer(%1) (1 <= %1 <= g_players)
new const PLUGIN_VERSION[] = "1.0";
new gRed, gBlue;
new g_players;
public plugin_init()
{
register_plugin("Aim Health", PLUGIN_VERSION, "MaNiax");
RegisterHam(Ham_Player_PreThink, "player", "Player_PreThink");
g_players = get_maxplayers();
}
public Player_PreThink(id)
{
new iPlr, iBody;
get_user_aiming(id, iPlr, iBody);

if( IsPlayer(iPlr) && is_user_alive(iPlr) )
{
switch( cs_get_user_team(iPlr) )
{
case CS_TEAM_T:
{
gRed = 255;
gBlue = 0;
}
case CS_TEAM_CT:
{
gRed = 0;
gBlue = 255;
}
}

new EnemyHealth = get_user_health(iPlr);
new EnemyName[33];
get_user_name(iPlr, EnemyName, charsmax(EnemyName));
set_hudmessage(gRed, gBlue, 0, -1.0, -1.0, 0, 6.0, 1.6, 0.1, 0.2, -1);
show_hudmessage(id, "Name: %s | Health: %i", EnemyName, EnemyHealth);
}
}




  • +
  • -
  • 2


#204096 respawn

Napisane przez b0niek w 08.01.2011 15:29

Powinno działać aczkolwiek nie testowałem

/* AMXX Mod script.
*
* (c) Copyright 2004, developed by Geesu
* This file is provided as is (no warranties).
*
* Changelog
* 1.1:
* Added /respawn command to spawn a player if they're dead
* Added a public cvar
* 1.0:
* Pistols are now given to players when they respawn
* sv_checkpistols cvar added, if this is set to 0, then players will always spawn with a pistol, otherwise they will only spawn with a pistol when it is not scoutzknivez and not a ka map
* sv_respawn cvar added, set this to 0 to disable the plugin
*/

new const VERSION[] = "1.1"

#include
#include
#include

#define DISABLE_CS 0

// team ids
#define UNASSIGNED 0
#define TS 1
#define CTS 2
#define AUTO_TEAM 5

new bool:g_PistolsDisabled = false

public plugin_init(){

register_plugin("Respawn Forever", VERSION, "Pimp Daddy (OoTOAoO)")

register_event("DeathMsg","on_Death","a")

register_cvar("sv_checkpistols", "1")
register_cvar("sv_respawn", "1")
register_cvar("respawn_forever_version", VERSION, FCVAR_SERVER)


}



public check_pistols()
{
/* Determine if we should give players a pistol or not */
if ( get_cvar_num("sv_checkpistols") )
{
set_task(1.0, "check_pistols")
new mapname[32]
get_mapname(mapname,31)
if ( containi(mapname,"ka_")!=-1 || containi(mapname,"scoutzknivez")!=-1 )
g_PistolsDisabled = true
}
}

public spawn_func(id)
{
new parm[1]
parm[0]=id

/* Spawn the player twice to avoid the HL engine bug */
set_task(0.5,"player_spawn",72,parm,1)
set_task(0.7,"player_spawn",72,parm,1)

/* Then give them a suit and a knife */
set_task(0.9,"player_giveitems",72,parm,1)
}

public on_Death()
{
if ( !get_cvar_num("sv_respawn") )
{
return PLUGIN_CONTINUE
}

new victim_id = read_data(2)

if(cs_get_user_team(victim_id) == CS_TEAM_T)
{
spawn_func( victim_id )

return PLUGIN_CONTINUE
}
else
{
return PLUGIN_CONTINUE
}

}

public player_giveitems(parm[1])
{
new id = parm[0]

give_item(id, "item_suit")
give_item(id, "weapon_knife")

/* Determines if a players should be given a pistol */
if ( !g_PistolsDisabled )
{
new wpnList[32] = 0, number = 0, bool:foundGlock = false, bool:foundUSP = false
get_user_weapons(id,wpnList,number)

/* Determine if the player already has a pistol */
for (new i = 0;i < number;i++)
{
if (wpnList[i] == CSW_GLOCK18)
foundGlock = true
if (wpnList[i] == CSW_USP)
foundUSP = true
}

/* Give a T his/her pistol */
if ( get_user_team(id)==TS && !foundGlock )
{
give_item(id,"weapon_glock18")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
}
/* Give a CT his/her pistol */
else if ( get_user_team(id)==CTS && !foundUSP )
{
give_item(id,"weapon_usp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
}
}

return PLUGIN_CONTINUE
}

public player_spawn(parm[1])
{
spawn(parm[0])
}

  • +
  • -
  • 1


#203569 Pluginy na zp

Napisane przez WazzaP w 07.01.2011 05:30

Pewnie w przyszłości Ci się przyda:
[UPDATED]List of ZP 3rd party plugins - AlliedModders
  • +
  • -
  • 1


#203467 Pluginy na zp

Napisane przez WKG reklama**** w 06.01.2011 21:26

masz http://www.cscenter.pl/pluginy_amx_mod_x/89998-%5Bzm%5D_laser_mine_za_ammo_packi.html