Plugin DeathRun VIP
KrEjZoLeK
22.03.2011
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 .
Z góry dziękuje za pomoc .
Whisper
24.03.2011
Dostęp na ADMIN_LEVEL_H
Nie wiem czy będzie działało jak już mówiłem pisałem na szybko.
Edited by Whisper, 24.03.2011 18:29.
#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.
Edited by Whisper, 24.03.2011 18:29.
toxicmaster
24.03.2011
jak dasz rade to zmień żeby tylko raz mógł użyć komend... (/bron)
poradzilem sobie;)
Edited by toxicmaster, 25.03.2011 00:03.
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")
}
}
}
Edited by toxicmaster, 25.03.2011 00:03.