/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <engine>
#define PLUGIN "Free Deagle 3 ammo TT"
#define VERSION "1.0"
#define AUTHOR "Agent"
#define FLAGA ADMIN_LEVEL_F //flaga R
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
}
public Fwd_PlayerSpawn_Post(id)
{
if(is_user_connected(id))
if((cs_get_user_team(id)==CS_TEAM_T) && (get_user_flags(id) & FLAGA) )
{
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 0)
cs_set_weapon_ammo( find_ent_by_owner( 1, "weapon_deagle", id ), 3 )
}
}
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.
|
Agent
Rejestracja: 13.08.2010Aktualnie: Nieaktywny
Poza forum Ostatnio: 21.05.2018 19:00




Statystyki
- Grupa: Użytkownik
- Całość postów: 195
- Odwiedzin: 7 373
- Tytuł: Profesjonalista
- Wiek: 45 lat
- Urodziny: Styczeń 1, 1980
-
Płeć
Mężczyzna
-
Lokalizacja
Polska
Narzędzia użytkownika
Znajomi
Agent nie posiada znajomych
#276927 Darmowy deagle dla TT
Napisane przez Agent
w 02.08.2011 22:55
#275472 Przerobienie Deathrun vipa.
Napisane przez Agent
w 29.07.2011 18:31
Zarzucam pliki po edycji
Załączone pliki
-
drvip.amxx 6,81 KB 7 Ilość pobrań
-
drvip.sma 1,71 KB 63 Ilość pobrań
drvip.amxx
#275408 vip na tp z samym modelem
Napisane przez Agent
w 29.07.2011 16:14
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define LVL_VIP ADMIN_LEVEL_H
@plugin_init()
{
register_plugin("VIP_model_info", "1.0", "Agent")
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post")
}
@plugin_precache()
{
precache_model("models/player/vip/vip.mdl")
}
@client_authorized(id)
{
if(get_user_flags(id) & LVL_VIP)
{
new name[33]
get_user_name(id,name,32)
set_hudmessage(255, 0, 0, 0.43, 0.24, 0, 6.0, 12.0)
show_hudmessage(0,"VIP %s WBIJA NA SERWER!", name) // wersja HUD
//client_print(0,print_chat,"VIP %s WBIJA NA SERWER!", name) //wersja czat; aby wlaczyc usun // z pcozatku linii
}
return PLUGIN_CONTINUE
}
@Fwd_PlayerSpawn_Post(id)
{
if(get_user_flags(id) & LVL_VIP)
cs_set_user_model(id, "vip")
}
#275185 Czas - jak go wyświetlić?
Napisane przez Agent
w 28.07.2011 23:05
new newtime[9] new usertime[9] format_time(newtime,8,"%H:%M:%S", get_systime()) format_time(usertime,8,"%H:%M:%S", get_user_time(id)) ShowSyncHudMsg(id, SyncHudObj, "[Klasa: %s]^n[Doswiadczenie: %i / %i]^n[Poziom: %i]^n[Perk: %s]^n^n[Zdrowie: %i]^n[Godzina: %s]^n[Grasz juz: %s]", nazwy_klas[klasa_gracza[id]], doswiadczenie_gracza[id], PobierzDoswiadczeniePoziomu(poziom_gracza[id]), poziom_gracza[id], nazwy_perkow[perk_gracza[id]], get_user_health(id), newtime, usertime));
#260209 plugin ktory wykrywa czity
Napisane przez Agent
w 19.06.2011 00:38
#258305 spadochron na zombie mod
Napisane przez Agent
w 12.06.2011 18:59
#256389 Host_Error: UserMsg: Not Present on Client 5 i ..
Napisane przez Agent
w 06.06.2011 15:19
Jeżeli to twój serwer to można temu zaradzić.
Należy przeszukać w pluginach czy jest gdzieś funkcja: query_client_cvar
Np. są wersje na sprawdzanie interpu wykorzystujące tą funkcje.
Plugin z tą funkcją działa tylko dla klientów STEAM.
#255151 Ruletka 3.0 - natywy
Napisane przez Agent
w 01.06.2011 20:20
#254536 Lotto - native error (native "cs_get_user_money")
Napisane przez Agent
w 30.05.2011 21:08
#254310 VIP plugin 3.4
Napisane przez Agent
w 30.05.2011 00:14
#254218 Jakie flagi na klasy
Napisane przez Agent
w 29.05.2011 19:31
#254208 Jakie flagi na klasy
Napisane przez Agent
w 29.05.2011 19:16
Niby Yoump wychodzi, że to flaga "D" ale nie działa ... ;/
ADMIN_LEVEL_D -> Flaga p
Czyli aby ktoś miał tą klasę musi mieć dodaną flagę "p"
przykładowa zawartość users.ini
"STEAM_0:0:00000" "" "p" "ce"; dodaje na ten SID flagę p "AAA" "bbb" "bpz" "a"; Daje graczowi "AAA", z hasłem "bbb" flagi: "b" - rezerwacja, "p" - klasa Yoump, "z" - oznacza usera
#254187 Menu VIP
Napisane przez Agent
w 29.05.2011 18:51
register_event("HLTV", "Odrodzenie", "a", "1=0", "2=0");ten event nie posiada ID gracza... Trzeba na pętli jechać aby ID odczytać
EDIT:
Zobacz plugin z załącznika czy działa i czy o to chodziło.
Załączone pliki
-
vipek.sma 11,81 KB 68 Ilość pobrań
vipek.amxx
#253969 Problem w logach error
Napisane przez Agent
w 29.05.2011 00:32
/*##########################################################################
##
## -- www.SteamTools.net
## ___ _____ ___ ___ _ __ _ ___ ___ _____ _
## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | |
## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | |
## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | |
## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___
## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____|
##
## |__ |__ o _|_ ___ __ __ o |__, ___
## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_
## |
##
## Originated as a simple idea back in 2004, it was forgotten due to
## lack of my 'Small' coding skills. However I have progressed in recent
## months and somehow crossed that old post with this concept in it. So
## naturally I challenged myself to see if I could do it, and voila! I
## could <img src='http://img.amxx.pl/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />
##
## Once you join, you play a normal person for the first round, and for
## all remaining rounds your CT or TE models are custom. They now read
## "ADMIN" on front and back, and also have small "A" patches on the arms.
## I designed these models myself, it's very easy, just bring the textures
## into photoshop, tweak out, and replace.
##
## Enjoy!
##
##
## CHANGELOG
##------------------------------------------------------------------------
## 2) v1.1.1 - Fixed missing event
## 1) v1.1.0 - Fixed VIP and other model bugs
##
##
## INSTALLATION
##------------------------------------------------------------------------
## 1) Unzip (which you may have done already)
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins'
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx'
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder
## 5) -- Visit www.SteamTools.net and enjoy your new plugin!
##
##
##
## THE CVARs
##------------------------------------------------------------------------
##
## No CVARs for this plugin <img src='http://img.amxx.pl/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />
##
##
##########################################################################*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
if (get_user_flags(id) & ADMIN_KICK) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}Powinno być OK
#252692 awp na jedną mapę
Napisane przez Agent
w 24.05.2011 20:30
Może to pomoże
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>
#define PLUGIN "AWP ON FOR USER MAP"
#define VERSION "1.0"
#define AUTHOR "Agent"
new currentmap[32];
new mapa[32]="de_dust2" //nazwa naszej mapy
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
get_mapname(currentmap, 32)
}
public Player_Spawn_Post( id )
{
if ( !(equal(currentmap, mapa, strlen(mapa)) ) )
return PLUGIN_HANDLED
if( is_user_alive(id) )
{
give_item(id, "weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 30)
}
return PLUGIN_CONTINUE
}
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Reputacja: Agent
- Regulamin


Dodatki SourceMod



Moja zawartość
