Modificare 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
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5333
Joined: 27 May 2012, 10:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

12 Jul 2012, 19:32

Vreau sa-mi modificati si mie urmatorul plugin :
| 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 "new-plugin"
#define VERSION "0.1"
#define AUTHOR "sPuf ?"

new const MenuName[] = "\rNume 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 1000 HP^n");
	n += formatex(szMenu[n], 1023-n, "\r3.\w Deagle^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:
		{
			hp(id);
			return 1;
		}
		case 2:
		{
			deagle(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 !!");
	
	client_print(id,print_chat,"Acum esti 100% invizibil");
	set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
}
public hp(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 1000 HP !!");
	client_print(id,print_chat,"Acum ai 1000 HP");
	set_user_health(id,1000);
}
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 DEAGLE !!");
	client_print(id,print_chat,"Ai primit DEAGLE");
	give_item(id, "weapon_deagle");
	give_item(id,"ammo_50ae");
}


Vreau urmatoarele optiuni :

-Invizibilitate -> jucatorul sa fie 100% invizibil
-Arma sa-i ciuruiesc -> MP5 Navy cu 30 de GL
-Alba ca Zapada -> 30 de Flash-uri
-Sa le Explodeze Capu' -> 30 de HE
-Sa Sar Tot Mai Sus -> 400 gravitatie
-Sa Fug ca Dracu de Tamaie -> vit de miscare mai mare
-Surpriza -> sa-i dea 1 Smoke si un deagle cu 1 GL

Mai am cateva plugine cu meniu tero,toate imi da Bad Load x( in ciuda faptului cam activate modulele necesare
Multumesc...
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests