Mam prośbę odnośnie Vip'a na serwer DeathRun vip ma posiadać w ct(po wpisaniu /speed ma mieć większego speeda po wpisaniu /grawitacja ma mieć mniejszą grawitacje ) dla tt( tak samo jak w ct tylko ma mieć deagla z 7 nabojami ).
Z góry dziękuje za pomoc .
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.
|
Guest Message by DevFuse
2 odpowiedzi w tym temacie
#1
Napisano 22.03.2011 15:40
#2
Napisano 24.03.2011 18:14
Dostęp na ADMIN_LEVEL_H
Nie wiem czy będzie działało jak już mówiłem pisałem na szybko.
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "Deathrun VIP"
#define VERSION "1.0"
#define AUTHOR "Whisper"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say /speed", "VipSpeed", ADMIN_LEVEL_H)
register_concmd("say /grawitacja", "VipGraw", ADMIN_LEVEL_H)
register_concmd("say /bron", "VipBron", ADMIN_LEVEL_H)
}
public VipSpeed(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT)
{
set_user_maxspeed(id, 300.0)
client_print(id, print_chat, "[Deathrun VIP] Zwiekszyles sobie predkosc.")
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / CT")
}
}
}
public VipGraw(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT)
{
set_user_gravity(id, 0.6)
client_print(id, print_chat, "[Deathrun VIP] Zwiekszyles sobie grawitacje.")
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / CT")
}
}
}
public VipBron(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
give_item(id, "weapon_deagle")
client_print(id, print_chat, "[Deathrun VIP] Dostales Deagle'a")
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / T")
}
}
}
Nie wiem czy będzie działało jak już mówiłem pisałem na szybko.
Użytkownik Whisper edytował ten post 24.03.2011 18:29
#3
Napisano 24.03.2011 22:53
jak dasz rade to zmień żeby tylko raz mógł użyć komend... (/bron)
poradzilem sobie;)
poradzilem sobie;)
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "Deathrun VIP"
#define VERSION "1.0"
#define AUTHOR "Whisper"
new iZmienna[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say /speed", "VipSpeed", ADMIN_LEVEL_H)
register_concmd("say /grawitacja", "VipGraw", ADMIN_LEVEL_H)
register_concmd("say /bron", "VipBron", ADMIN_LEVEL_H)
register_event( "HLTV", "NewRound", "a", "1=0", "2=0" );
}
public NewRound() {
for(new id = 1; id<33; id++) {
iZmienna[id] = 0;
}
}
public VipSpeed(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT)
{
set_user_maxspeed(id, 320.0)
client_print(id, print_chat, "[Deathrun VIP] Zwiekszyles sobie predkosc.")
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / CT")
}
}
}
public VipGraw(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT)
{
set_user_gravity(id, 0.7)
client_print(id, print_chat, "[Deathrun VIP] Zwiekszyles sobie grawitacje.")
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / CT")
}
}
}
public VipBron(id, level, cid)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
if(iZmienna[id]< 1)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
give_item(id, "weapon_hegrenade")
client_print(id, print_chat, "[Deathrun VIP] Dostales HeGranade")
++iZmienna[id]
}
else
{
client_print(id, print_chat, "[Deathrun VIP] Dostepne tylko dla VIP'a / T")
}
}
}
Użytkownik toxicmaster edytował ten post 25.03.2011 00:03
Również z jednym lub większą ilością słów kluczowych: Nowy Plugin
|
Nowy Plugin
[KOSZ] pluginNapisany przez Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbNapisany przez One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuNapisany przez stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuNapisany przez stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Napisany przez bawarskagolonka123, 25.06.2021 nowy plugin |
|
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych