add_barbarian_bonus(kid)dajesz
if(player_class[kid] == Klasa) change_health(id,50,0,"")
To równanie zostało stworzone przy pomocy kodu LaTeX:
Edytor LaTeX online: CodeCogs.com/latex/eqneditor.php
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.
|
DioW nie posiada znajomych
Napisane przez Siemir
w 10.07.2010 11:27
Napisane przez Siemir
w 10.07.2010 11:23
Napisane przez Siemir
w 09.07.2010 20:13
player_class[id]!=Nekromantai dodaj za tym
&& !jakaszmienna[id]a przy naładowaniu ustaw na 1, a przy śmierci na 0.
else { set_user_gravity(id,1.0*(1.0-player_b_gravity[id]/12.0)) }dodaj
else if(jakaszmienna[id]) { set_user_gravity(id,0.25*(1.0-player_b_gravity[id]/12.0)) }czy jaką tam wartość chcesz.
Napisane przez ZiuTeK
w 07.07.2010 22:06
Napisane przez Siemir
w 05.07.2010 20:19
set_hudmessage(255, 255, 255, 0.78, 0.65, 0, 6.0, 3.0)zamień to na
set_hudmessage(random(255), random(255), random(255), 0.78, 0.65, 0, 6.0, 3.0)co da zmianę kolorów co każde odświeżenie huda czyli standardowo 0.8s, jeżeli bardzo Ci to przeszkadza zmień częstotliwość taska ale nie wiem jaki to będzie miało wpływ na hud żywych graczy.
client_cmd(id, "spk diablo/lvlup)
Napisane przez
Screeaam...
w 01.07.2010 16:18
public CurWeapon(id)
if(player_sword[id] == 1) { if(on_knife[id]){ entity_set_string(id, EV_SZ_viewmodel, SWORD_VIEW) entity_set_string(id, EV_SZ_weaponmodel, SWORD_PLAYER) } if(weapon == CSW_C4){ entity_set_string(id, EV_SZ_viewmodel, C4_VIEW) entity_set_string(id, EV_SZ_weaponmodel, C4_PLAYER) } if(weapon == CSW_HEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, HE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, HE_PLAYER) } if(weapon == CSW_FLASHBANG){ entity_set_string(id, EV_SZ_viewmodel, FL_VIEW) entity_set_string(id, EV_SZ_weaponmodel, FL_PLAYER) } if(weapon == CSW_SMOKEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, SE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, SE_PLAYER) } }
if(Twoja_Zmienna[id] == 1) { if(on_knife[id]){ entity_set_string(id, EV_SZ_viewmodel, MODEL_VIEW) entity_set_string(id, EV_SZ_weaponmodel, MODEL_PLAYER) } if(weapon == CSW_C4){ entity_set_string(id, EV_SZ_viewmodel, C4_VIEW) entity_set_string(id, EV_SZ_weaponmodel, C4_PLAYER) } if(weapon == CSW_HEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, HE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, HE_PLAYER) } if(weapon == CSW_FLASHBANG){ entity_set_string(id, EV_SZ_viewmodel, FL_VIEW) entity_set_string(id, EV_SZ_weaponmodel, FL_PLAYER) } if(weapon == CSW_SMOKEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, SE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, SE_PLAYER) } }
new MODEL_VIEW[] = "models/diablomod/v_model_noza.mdl" new MODEL_PLAYER[] = "models/diablomod/p_model_noza.mdl"
precache_model(MODEL_VIEW) precache_model(MODEL_PLAYER)
Napisane przez Whitehouse
w 03.07.2010 17:45
Napisane przez
Tiger_pl
w 15.04.2010 05:34
amx_giveitem <nick> <nr itemu="">przykład :
amx_giveitem Tiger_pl 32czyli
case 1: "Bronze Amplifier" case 2:"Silver Amplifier" case 3:"Gold Amplifier" case 4:"Vampyric Staff" case 5:"Vampyric Amulet" case 6:"Vampyric Scepter" case 7:"Small bronze bag" case 8:"Medium silver bag" case 9:"Large gold bag" case 10:"Small angel wings" case 11:"Arch angel wings" case 12:"Invisibility Rope" case 13:"Invisibility Coat" case 14:"Invisibility Armor" case 15:"Firerope" case 16:"Fire Amulet" case 17:"Stalkers ring" case 18: "Arabian Boots" case 19:"Phoenix Ring" case 20:"Sorcerers ring" case 21:"Chaos Orb" case 22:"Hell Orb" case 23:"Gold statue" case 24:"Daylight Diamond" case 25:"Blood Diamond" case 26:"Wheel of Fortune" case 27:"Four leaf Clover" case 28:"Amulet of the sun" case 29:"Sword of the sun" case 30:"Fireshield" case 31:"Stealth Shoes" case 32:"Meekstone" case 33:"Medicine Glar" case 34:"Medicine Totem" case 35:"Iron Armor" case 36:"Mitril Armor" case 37:"Godly Armor" case 38:"Fireball staff" case 39:"Fireball scepter" case 40:"Ghost Rope" case 41:"Nicolas Eye" case 42:"Knife Ruby" case 43:"Lothars Edge" case 44:"Sword" case 45:"Magic Booster" case 46:"Dagon I" case 47:"Scout Extender" case 48:"Scout Amplifier" case 49:"Air booster" case 50:"Iron Spikes" case 51:"Point Booster" case 52:"Totem amulet" case 53:"Magic Hook" case 54:"Darksteel Glove" case 55:"Darksteel Gaunlet" case 56:"Illusionists Cape" case 57:"Techies scepter" case 58:"Ninja ring" case 59:"Mag ring" case 60:"Nekromanta ring" case 61:"Barbarzynca ring" case 62: "Paladyn ring" case 63:"Mnich ring" case 64:"Zabojca ring" case 65:"Flashbang necklace" case 66:"Chameleon" case 67:"Stong Armor" case 68:"Ultra Armor"
Napisane przez SoLiD
w 21.05.2010 22:11
#define TASKID_SETUSER 13312
#define KeysKlasy (1<<0)|(1<<1)|(1<<2)|(1<<9) // Keys: 1230
register_menucmd(register_menuid("Nowe Itemy"), 1023, "nowe_itemy")
register_menucmd(register_menuid("Klasy"), KeysKlasy, "PressedKlasy")
public select_class(id,lx[])
public select_class(id,lx[])
{
if(is_user_bot(id)) return
new flags[10]
get_cvar_string("diablo_classes",flags,9)
new text[512]
new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
asked_klass[id]=0
format(text, 511,"\yWybierz Klase - ^n")
for(new i=0;i<8;i++) //Tego masz nigdy nie zmieniać!!!!!!!!!!!!!!!!!!!!!!!
{
format(text, 511,"%s%s%d. %s Level :%d ^n",text,(keys)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])
}
format(text, 511,"%s^n9. Dalej^n",text)
show_menu(id, keys, text)
}
select_class_menu(id, key)
new lx[9]
case 7:
{
player_class[id] = Hunter
g_GrenadeTrap[id] = 1
}
case 8:{
ShowKlasy(id,lx)
}
public select_class_menu
public ShowKlasy(id,lx[]) {
new text2[512]
asked_klass[id]=0
format(text2, 511,"\yWybierz klase - ^n\w1. klasa1 Level :%i^n^n^n0.Wstecz^n",player_class_lvl[id][9])
show_menu(id, KeysKlasy,text2, -1, "Klasy")
}
public PressedKlasy(id, key) {
new lx[9]
g_haskit[id] = 0
switch (key) {
case 0: {
//Zobacz spoiler niżej!!!
}
case 9: { // 0
select_class(id,lx)
}
}
LoadXP(id, player_class[id])
CurWeapon(id)
give_knife(id)
return PLUGIN_HANDLED
}
enum { NONE = 0, Mag, Mnich, Paladyn, Zabojca, Nekromanta, Barbarzynca, Ninja, Hunter }
new Race[9][18] = { "None","Mag","Mnich","Paladyn","Zabojca","Nekromanta","Barbarzynca", "Ninja", "Lowca" }
new race_heal[9] = { 100,95,150,130,100,90,110,170,120 }
enum { NONE = 0, Mag, Mnich, Paladyn, Zabojca, Nekromanta, Barbarzynca, Ninja, Hunter, NazwaKlasy }
new Race[10][18] = { "None","Mag","Mnich","Paladyn","Zabojca","Nekromanta","Barbarzynca", "Ninja", "Lowca", "NazwaKlasy" }
new race_heal[10] = { 100,95,150,130,100,90,110,170,120, 200 }//HP na start
new player_class_lvl[33][9]
new player_class_lvl_save[33]
new player_ :xP:_old[33]
new database_user_created[33]
new srv_avg[9] = {1,1,1,1,1,1,1,1,1}
new player_class_lvl[33][10]
new player_class_lvl_save[33]
new player_ :xP:_old[33]
new database_user_created[33]
new srv_avg[10] = {1,1,1,1,1,1,1,1,1,1}
register_cvar("diablo_classes", "abcdefgh")
register_cvar("diablo_classes", "abcdefghi")
case 0: {
//Zobacz spoiler niżej!!!
}
case 0: {
player_class[id] = NazwaKlasy
//Jakiś bonus jak chcesz
}
case Hunter: fm_give_item(id, "weapon_hegrenade")
case Hunter: fm_give_item(id, "weapon_hegrenade")
case NazwaKlasy:
{
//Bonusy pod nożem klasy
}
new flags[10]
get_cvar_string("diablo_classes",flags,9)
new flags[11]
get_cvar_string("diablo_classes",flags,10)
new lx[9]
new lx[10]
for(new i=1;i<9;i++)
for(new i=1;i<10;i++)
Napisane przez DarkGL
w 02.07.2010 21:32
Napisane przez Kusek
w 02.07.2010 21:15
//ColorChat(id, GREEN,"[Cosik]^x01 A nic");
#define MAXSLOTS 32
enum Color{
YELLOW = 1, // Yellow
GREEN, // Green Color
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
}
new TeamName[][] = {
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case YELLOW:{ // Yellow
message[0] = 0x01;
}
case GREEN:{// Green
message[0] = 0x04;
}
default:{ // White, Red, Blue
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';
new team, ColorChange, index, MSG_Type;
if(!id) {
index = FindPlayer();
MSG_Type = MSG_ALL;
} else {
MSG_Type = MSG_ONE;
index = id;
}
team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);
if(ColorChange){
Team_Info(index, MSG_Type, TeamName[team]);
}
}
ShowColorMessage(id, type, message[]){
message_begin(type, 76, _, id);
write_byte(id)
write_string(message);
message_end();
}
Team_Info(id, type, team[]){
message_begin(type, 86, _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type){
switch(Type) {
case RED: {
return Team_Info(index, type, TeamName[1]);
}
case BLUE: {
return Team_Info(index, type, TeamName[2]);
}
case GREY: {
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}
FindPlayer(){
new i = -1;
while(i <= MAXSLOTS){
if(is_user_connected(++i)){
return i;
}
}
return -1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
Napisane przez G[o]Q
w 29.06.2010 21:47
Napisane przez
hardbot
w 30.04.2010 14:14