cerere plugin vip

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
TedyBB
Membru, skill +1
Membru, skill +1
Posts: 183
Joined: 08 Jun 2013, 14:38
Detinator Steam: Da
CS Status: fun.csblackzone.ro
Has thanked: 15 times
Been thanked: 38 times
Contact:

19 Dec 2013, 18:46

vreau si eu un plugin vip care sa aiba:
model
cand tai tab sa apara vip
150hp
150ap
2x he
cand scrii /vip sa apara vipurile

flagul x
Rapidserver
User avatar
mixatu
Membru, skill +2
Membru, skill +2
Posts: 660
Joined: 26 Apr 2012, 14:47
Detinator Steam: Da
Detinator server CS: ★ PLAY.USP.RO ★
SteamID: kzu1337
Reputatie: Membru Club eXtreamCS (1 luna)
Location: cstrike
Has thanked: 59 times
Been thanked: 28 times
Contact:

19 Dec 2013, 20:39

Pe flagul x nu se poate.
ImageImage
Fondator: ★ PLAY.USP.RO ★ Competitive CS:GO Server [!ws !gloves !knife FREEVIP!]
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

19 Dec 2013, 22:22

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

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"

#define ADMIN_VIP	ADMIN_LEVEL_H

#pragma semicolon 1

new g_Task = 32344535, gmsgSayText;

static const COLOR[] = "^x04";

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("Damage", "event_damage", "b", "2!0", "3=0", "4!0");
	RegisterHam(Ham_Spawn,"player","fham_spawn",1);
	gmsgSayText = get_user_msgid("SayText");
	
	register_clcmd("say /vip","cmdVips");
}
public fham_spawn(id)
{
	if(get_user_flags(id) & ADMIN_VIP && is_user_alive(id))
	{
		set_user_health(id, get_user_health(id) + 50);
		set_user_armor(id, get_user_armor(id) + 50);
		set_task(1.0,"ScoreBoard",id + g_Task);
		cs_reset_user_model(id);
		cs_set_user_model(id,"vip");
		client_cmd(id, "cl_minmodels 0");
		give_item(id, "weapon_hegrenade");
		give_item(id, "weapon_hegrenade");
	}
}
public ScoreBoard( idtask )
{
	new id = idtask - g_Task;
	if(is_user_connected(id))
	{
		message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) );
		write_byte( id );
		write_byte( 4 );
		message_end( );
	}
}
public cmdVips(user) 
{
	new adminnames[33][32];
	new message[256];
	new id, count, x, len;
	new maxplayers = get_maxplayers();
	for(id = 1 ; id <= maxplayers ; id++)
	if(is_user_connected(id))
	if(get_user_flags(id) & ADMIN_VIP)
	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);
	}
}

print_message(id, msg[]) {
	message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id);
	write_byte(id);
	write_string(msg);
	message_end();
}
public plugin_precache()
{
	precache_model("models/player/vip/vip.mdl");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
schimbi ADMIN_VIP cu ce vrei tu , acum are flagul "T"
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests