Nie wiem co jest. Przed wybraniem mam. Pomóżcie
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
Prośba o dodanie paki
Temat rozp.
Witos
, 11.07.2011 21:19
2 odpowiedzi w tym temacie
#1
Napisano 11.07.2011 21:19
Witam proszę o dodanie w tym VIP SMA paki dla terro ponieważ gdy mam pakę i wybiorę np. 1 (tj. M4+USP a nawet jak wybiorę AK+Glock) to gdy mam pakę i wybieram darmowy zestaw to paka znika. Pisze, że mam pakę a tak na prawdę jej nie mam.
Nie wiem co jest. Przed wybraniem mam. Pomóżcie
Nie wiem co jest. Przed wybraniem mam. Pomóżcie
#2
Napisano 11.07.2011 22:04
sprawdź:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
#define PLUGIN "VIP part2"
#define VERSION "2.0v"
#define AUTHOR "Dunno"
#define Keysrod (1<<0)|(1<<1)|(1<<9) // Keys: 1234567890
new round = 1
new bool:HasC4[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod")
register_logevent("logevent_Round_Start", 2, "1=Round_Start")
register_clcmd("say /whantvip","ShowMotd")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
// Add your code here...
}
public logevent_Round_Start() {
round++;
new players[32], player, pnum;
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
set_user_gravity(player,1.0)
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
if(round > 3) Showrod(player)
}
}
}
public Showrod(id) {
show_menu(id, Keysrod, "Darmowe bronie VIP^n\w1. Wez M4A1+USP ^n\w2. Wez AK47+Glock^n0. Wyjdz^n", -1, "rod") // Display menu
}
public Pressedrod(id, key) {
/* Menu:
* VIP Menu
* 1. Wez M4A1+USP
* 2. Wez AK47+Glock
* 0. Wyjdz
*/
switch (key) {
case 0:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
{
HasC4[id] = true;
}
else
{
HasC4[id] = false;
}
strip_user_weapons (id)
give_item(id,"weapon_m4a1")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"weapon_usp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_kevlar");
give_item(id,"item_assaultsuit");
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant(id, 1);
}
client_print(id, print_center, "Wybrales zestaw M4A1 i USP")
}
case 1:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
{
HasC4[id] = true;
}
else
{
HasC4[id] = false;
}
strip_user_weapons (id)
give_item(id,"weapon_ak47")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"weapon_glock18")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"bomb")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_kevlar");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant(id, 1);
}
client_print(id, print_center, "Wybrales zestaw AK47 i Glock")
}
case 9: { // 0
}
}
return PLUGIN_CONTINUE
}
public ShowMotd(id)
{
show_motd(id, "vip.txt")
}
public client_authorized(id)
{
set_task(30.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id, print_chat, "[VIP] Wpisz /whantvip aby zobaczyc przywileje VIP.")
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_LEVEL_H)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s VIP ONLINE: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "No VIP online.")
print_message(user, message)
}
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
public client_connect(id)
{
new name[32]
get_user_info(id, "name", name, 31)
if(get_user_flags(id) & ADMIN_LEVEL_H) {
set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2)
show_hudmessage(0, "Special VIP %s has Entered",name)
}
}
#3
Napisano 12.07.2011 12:33
Zaraz powiem
Edit. Dzięki działa
Edit. Dzięki działa
Użytkownik Witos edytował ten post 12.07.2011 12:51
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych