Eroare la un plugin ...

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
SmOkE007
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 03 Nov 2011, 16:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

11 Jul 2012, 16:41

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#pragma semicolon 1

#define KEYS    ((1<<0)|(1<<1)|(1<<2)|(1<<9))

#define PLUGIN "Tero MENU"
#define VERSION "0.1"
#define AUTHOR "sPuf ?"

new const MenuName[] = "\rTero - Meniu^n^n";
new MENU;

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	MENU = register_menuid("MENU");
	register_menucmd( MENU, KEYS, "MenuHandler");
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1);
}

public fw_PlayerSpawn(id) {
	
	if(cs_get_user_team(id) == CS_TEAM_T) showMenu(id);
	
	return HAM_IGNORED;
}

public showMenu(id) {
	new szMenu[1024], n;

	n = formatex(szMenu, 1023, "%s",MenuName);
	n += formatex(szMenu[n], 1023-n, "\r1.\w Invizibilitate^n");
	n += formatex(szMenu[n], 1023-n, "\r2.\w AK47 (15 Gloante)^n");
        n += formatex(szMenu[n], 1023-n, "\r3.\w 5 Flash + 2 HE^n");
	n += formatex(szMenu[n], 1023-n, "\r4.\w Deagle (Full Gloante)^n);
	n += formatex(szMenu[n], 1023-n, "\r5.\w AWP (4 Incercari)^n^n^n\r0.\2 Iesire");
	show_menu(id, KEYS, szMenu, -1, "MENU");
}
public MenuHandler(id, key){
	
	if(!is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_CT) return 1;
	
	switch(key)
	{
		case 0:
		{
			invisible(id);
			return 1;
		}
		case 1:
		{
			ak47(id);
			return 1;
		}
		case 2:
		{
			flashhe(id);
			return 1;
		}
                case 3:
		{
			deagle(id);
			return 1;
		}
		case 4:
		{
			awp(id);
			return 1;
		}
		case 9:
		{
			showMenu(id);
		}
	}
	return 0;
}

public invisible(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	set_hudmessage(0, 255, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	set_hudmessage(0, 0, 255, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	client_print(id,print_chat,"Acum esti 100% invizibil , dar ai doar 50HP !!!");
	set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
	set_user_health(id, 50);
}

public ak47(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are Ak47 !!");
	client_print(id,print_chat,"Acum ai Ak47");
        give_item(id, "weapon_ak47");
        cs_set_user_bpammo( id, CSW_AK47, 15 );
	
}

public deagle(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are Desert-Eagle !!");
	client_print(id,print_chat,"Acum ai Deagle !!!");
        give_item(id, "weapon_deagle");
        cs_set_user_bpammo( id, CSW_DEAGLE, 75 );	
}

public flashhe(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are 5 Flashuri + 2 HE !! Atentie la el !");
	client_print(id,print_chat,"Ai primit 5 Flashuri + 2 HE");
	give_item(id, "weapon_flashbang");
        cs_set_user_bpammo(id, CSW_FLASHBANG, 5);
        give_item(id, "weapon_hegrenade");
	cs_set_user_bpammo(id, CSW_HEGRENADE, 2);
}

public awp(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are AWP si sta la panda! Sniper USER!");
	client_print(id,print_chat,"Ai primit un AWP ... ai doar 4 incercari asa ca stai atent");
	give_item(id, "weapon_awp");
        cs_set_user_bpammo(id, CSW_AWP, 4);
}
zice ca nu este terminat un paragraf .... am revazut tot pluginul ... nu stiu :|
WAll IN Casti AIM in MOUSE SKILL IN SANGE
Codati
Scripturi cs Y!M udrea.florentin@yahoo.com
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

11 Jul 2012, 17:14

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#pragma semicolon 1

#define KEYS    ((1<<0)|(1<<1)|(1<<2)|(1<<9))

#define PLUGIN "Tero MENU"
#define VERSION "0.1"
#define AUTHOR "sPuf ?"

new const MenuName[] = "rTero - Meniu^n^n";
new MENU;

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	MENU = register_menuid("MENU");
	register_menucmd( MENU, KEYS, "MenuHandler");
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1);
}

public fw_PlayerSpawn(id) {
	
	if(cs_get_user_team(id) == CS_TEAM_T) showMenu(id);
	
	return HAM_IGNORED;
}

public showMenu(id) {
	new szMenu[1024], n;

	n = formatex(szMenu, 1023, "%s",MenuName);
	n += formatex(szMenu[n], 1023-n, "r1.w Invizibilitate^n");
	n += formatex(szMenu[n], 1023-n, "r2.w AK47 (15 Gloante)^n");
        n += formatex(szMenu[n], 1023-n, "r3.w 5 Flash + 2 HE^n");
	n += formatex(szMenu[n], 1023-n, "r4.w Deagle (Full Gloante)^n");
	n += formatex(szMenu[n], 1023-n, "r5.w AWP (4 Incercari)^n^n^nr0.2 Iesire");
	show_menu(id, KEYS, szMenu, -1, "MENU");
}
public MenuHandler(id, key){
	
	if(!is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_CT) return 1;
	
	switch(key)
	{
		case 0:
		{
			invisible(id);
			return 1;
		}
		case 1:
		{
			ak47(id);
			return 1;
		}
		case 2:
		{
			flashhe(id);
			return 1;
		}
                case 3:
		{
			deagle(id);
			return 1;
		}
		case 4:
		{
			awp(id);
			return 1;
		}
		case 9:
		{
			showMenu(id);
		}
	}
	return 0;
}

public invisible(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	set_hudmessage(0, 255, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	set_hudmessage(0, 0, 255, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s este acum invizibil !!! Dar HP-ul lui este mai mic !");
	client_print(id,print_chat,"Acum esti 100% invizibil , dar ai doar 50HP !!!");
	set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
	set_user_health(id, 50);
}

public ak47(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are Ak47 !!");
	client_print(id,print_chat,"Acum ai Ak47");
        give_item(id, "weapon_ak47");
        cs_set_user_bpammo( id, CSW_AK47, 15 );
	
}

public deagle(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are Desert-Eagle !!");
	client_print(id,print_chat,"Acum ai Deagle !!!");
        give_item(id, "weapon_deagle");
        cs_set_user_bpammo( id, CSW_DEAGLE, 75 );	
}

public flashhe(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are 5 Flashuri + 2 HE !! Atentie la el !");
	client_print(id,print_chat,"Ai primit 5 Flashuri + 2 HE");
	give_item(id, "weapon_flashbang");
        cs_set_user_bpammo(id, CSW_FLASHBANG, 5);
        give_item(id, "weapon_hegrenade");
	cs_set_user_bpammo(id, CSW_HEGRENADE, 2);
}

public awp(id) {
	new name[32];
	get_user_name(id,name,31);
	set_hudmessage(255, 0, 0, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are AWP si sta la panda! Sniper USER!");
	client_print(id,print_chat,"Ai primit un AWP ... ai doar 4 incercari asa ca stai atent");
	give_item(id, "weapon_awp");
        cs_set_user_bpammo(id, CSW_AWP, 4);
}
Ai uitat sa adaugi " inainte de );
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
ik1d0x@redfear.ro
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests