Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

proletaryat - zdjęcie

proletaryat

Rejestracja: 31.05.2012
Aktualnie: Nieaktywny
Poza forum Ostatnio: 28.02.2013 00:04
-----

#458292 [ROZWIĄZANE] Super marker

Napisane przez blakk w 15.09.2012 12:12

Łap, http://www64.zippysh...93277/file.html
  • +
  • -
  • 2


#492913 Problem z vip'em na paintballa

Napisane przez Ogen Dogen w 23.12.2012 16:49

Spróbuj taki kod :) Kolega się nie podpisał ^^

Załączony plik  vip.sma   4,75 KB  79 Ilość pobrań
  vip.amxx
  • +
  • -
  • 1


#492702 Problem z vip'em na paintballa

Napisane przez MaxiKINGer w 22.12.2012 23:06

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#define PLUGIN "PaintBall VIP"
#define VERSION "1.0"
#define ADMIN_CHECK ADMIN_LEVEL_H
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
public plugin_init()
{
	    register_plugin(PLUGIN, VERSION, AUTHOR)
	   
	    register_clcmd("say /vip","ShowMotd")
	    register_clcmd("say /infovip","ShowMotd")
	    register_clcmd("say /info","ShowMotd")
	    register_clcmd("say /vipinfo","ShowMotd")
	    register_clcmd("say_team /vip","ShowMotd")
	    register_clcmd("say_team /infovip","ShowMotd")
	    register_clcmd("say_team /info","ShowMotd")
	    register_clcmd("say_team /vipinfo","ShowMotd")
	    RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
	   
	    maxplayers = get_maxplayers()
	    gmsgSayText = get_user_msgid("SayText")
	    register_clcmd("say", "handle_say")
	    register_clcmd("say_team", "handle_say")
	    register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public fwHamPlayerSpawnPost(id)
{	  
	    if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
	    {
			    if(task_exists(id + 666))
					    remove_task(id + 666);
					   
			    set_task(4.0, "doGiveGrenades", id + 666);
	    }
}
public doGiveGrenades(task_id)
{
	    new id = task_id -= 666;
	   
	    if(id > get_maxplayers() || id < 1)
			    return PLUGIN_HANDLED;
			   
	    set_user_health(id, 100);	  
	    give_item(id, "weapon_hegrenade");
	    give_item(id, "item_thighpack");
	    give_item(id, "weapon_p90");
	    give_item(id, "weapon_primammo");
	    give_item(id, "weapon_primammo");
	   
	    return PLUGIN_CONTINUE;
}
			   
public ShowMotd(id)
	    show_motd(id, "vip.txt")
public handle_say(id)
{
	    new said[192]
	    read_args(said,192)
	    if( ( containi(said, "who") != -1 && containi(said, "vips") != -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_CHECK)
							    get_user_name(id, adminnames[count++], 31)
	    len = format(message, 255, "%s VIP'y 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, "Brak VIP'ow online.")
			    print_message(user, message)
	    }
	   
	    get_cvar_string("amx_contactinfo", contact, 63)
	    if(contact[0])  {
			    format(contactinfo, 111, "%s Kontakt z H@ znajdziesz na forum www.cskaskada.xaa.pl %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()
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
Hokus pokus czary mary - teraz lecisz po browary.


#419585 Usuncie mi ViiiipA!

Napisane przez JustBeFine w 10.06.2012 13:33

Zobacz.

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <engine>

#define PLUGIN "Sklep VIP"
#define VERSION "1.0"
#define AUTHOR "Truposz[WWL]"

#define Koszt_Gravitacja 5000
#define Koszt_Chodzenie 8000
#define Koszt_Ciche 10000
#define Koszt_Hp 5000
#define Koszt_Nie 16000
#define Koszt_He 2500
#define Koszt_Smoke 2000

new menu;
new g_hudsync

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)


register_clcmd("say /sklep","Wyswietl_menu")
set_task(0.1, "pokaz", _, _, _, "b")

RegisterHam(Ham_Spawn, "player", "reset", 1);
g_hudsync = CreateHudSyncObj()
menu=menu_create("Kup sobie coś!","amenu");
menu_additem(menu, "Gravitacja 5000$");
menu_additem(menu, "Szybkie Chodzenie 8000$");
menu_additem(menu, "Buty Kota(Ciche chodzenie) 10000$");
menu_additem(menu, "20 hp 5000$");
menu_additem(menu, "10s Niewidzialnosci 16000");
menu_additem(menu, "He granat 2500");
menu_additem(menu, "Smoke granat 2000");
}
public Wyswietl_menu(id){
menu_display(id, menu);
}
public amenu(id, menu, item){
switch(item){
case 0:{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Gravitacja){
cs_set_user_money(id, kasa - Koszt_Gravitacja)
set_user_gravity (id, 0.62);
}
else {
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;

}
}
case 1:{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Chodzenie){
cs_set_user_money(id, kasa - Koszt_Chodzenie)
set_user_maxspeed(id, 5.0);
}
else {
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
case 2:{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Ciche){
cs_set_user_money(id, kasa - Koszt_Ciche)
set_user_footsteps(id,0);

}
else {
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
case 3:{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Hp){
cs_set_user_money(id, kasa - Koszt_Hp)
new hp = get_user_health(id)
set_user_health(id, hp + 20);
}
else {
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
case 4:{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Nie){
cs_set_user_money(id, kasa - Koszt_Nie)
set_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 0);
set_task(10.0, "stop", id, _, _, "a", 1)
}
else {
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
case 5:
{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_He)
{
cs_set_user_money(id, kasa - Koszt_He);
give_item(id, "weapon_hegrenade");
}
else
{
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
case 6:
{
new kasa = cs_get_user_money(id);
if(kasa >= Koszt_Smoke)
{
cs_set_user_money(id, kasa - Koszt_Smoke);
give_item(id, "smokegrenade");
}
else
{
client_print(id, print_chat, "Nie stac cie na to! Oszczedzaj nastepnym razem");
return PLUGIN_HANDLED;
}
}
}

return PLUGIN_CONTINUE;
}
public stop(id){
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255);
}
public reset(id){
set_user_gravity (id, 1.0);
set_user_maxspeed(id, 1.0);

}
public pokaz(id)
{
new kasa = cs_get_user_money(id)
set_hudmessage(150, 150, 150, 0.40, 0.92, 0, 0.0, 0.3, 0.0, 0.0)
ShowSyncHudMsg(id, g_hudsync , "Twoja kasa %d", kasa )
}