O problema la vip

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Derek
Membru, skill +1
Membru, skill +1
Posts: 198
Joined: 19 Nov 2014, 18:16
Detinator Steam: Da
CS Status: CsBlackDevil.Com
Detinator server CS: ZM
Fond eXtream: 0
Location: Romania
Has thanked: 1 time
Contact:

02 Aug 2015, 15:09

Intampin o noua problema la vip. Merge ok vipul pe server, primesc ce trebuie sa primesc ca vip, doar ca atunci cand tastez /vip si mii se deschide un motd, nu-mi apar regulile puse de mine, apare motd-ul alb si scrie vip.txt..

Uitati vip.txt:

Code: Select all

<html>
<head>
<style type="text/css">
body	{
	background-color: #000000;
	font-family:Verdana,Tahoma;
		}
</style>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
</head>
<font size="2" color="#e0a518"><b><center>Want to be a VIP?</center></b></font><br />
<font size="1" color="#c0c0ff">
<UL>
<LI TYPE=square>VIP all round for a free grenade complect. (HE,2FB,SG)</LI><br>
<LI TYPE=square>VIP for a free armor.</LI><br>
<LI TYPE=square>VIP gets 2x bigest gravity.</LI><br>
<LI TYPE=square>VIP give a special just for them skins.</LI><br>
<LI TYPE=square>VIP can use slap / Slay.</LI><br>
<LI TYPE=square>VIP can use admin chat.</UL><br>
<LI TYPE=square>VIP receive a reservation.</UL><br>
<font size="1" color=#00c000><strong>How to get VIP?</strong></font><br>
VIP price: (your price).<br>
She wants to write to the VIP skype: <font color=#FF6600>(ignore.cshellworld)</font><br><br />
<font size="2" color="#ffffff"><strong>VIP by ignoRe-</strong></font><br />
</body>
</html>
Ajutati-ma va rog sa mearga acest motd, ca sa fie totul rezovat pe server. Va multumesc. [/b]
RoyalServer
User avatar
Radu pTm
Membru, skill +1
Membru, skill +1
Posts: 161
Joined: 15 Dec 2014, 14:50
Detinator Steam: Da
CS Status: Respecta si vei fi respectat !
SteamID: Radu ♣
Fond eXtream: 0
Location: Strehaia
Contact:

03 Aug 2015, 15:54

Posteaza sma la plugin.
Image
User avatar
Derek
Membru, skill +1
Membru, skill +1
Posts: 198
Joined: 19 Nov 2014, 18:16
Detinator Steam: Da
CS Status: CsBlackDevil.Com
Detinator server CS: ZM
Fond eXtream: 0
Location: Romania
Has thanked: 1 time
Contact:

03 Aug 2015, 17:18

Code: Select all

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>
#include <fun>

#define PLUGIN_NAME "vipas"
#define PLUGIN_AUTHOR "Kukulis"
#define PLUGIN_VERSION "0.1"

static const COLOR[] = "^x04"
static const CONTACT[] = ""

new maxplayers
new gmsgSayText

public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_AUTHOR, PLUGIN_VERSION);

register_event("ResetHUD","event_reset_hud","be");
register_event("ResetHUD", "resetModel", "b")
register_clcmd("say /vip","admin_motd",0,"- Shows the MOTD.")

register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
gmsgSayText = get_user_msgid("SayText")

maxplayers = get_maxplayers()

return PLUGIN_CONTINUE

}

public plugin_precache() {
precache_model("models/player/smith/smith.mdl")
precache_model("models/player/smith/smith.mdl")

return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_CVAR) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "smith")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "smith")
}
else {
cs_reset_user_model(id)
}
}

return PLUGIN_CONTINUE
}


public event_reset_hud(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;

client_print(id, print_chat, "[VIP] Write /vip To see the VIP privileges.")

if(!access(id,ADMIN_CVAR))
return PLUGIN_CONTINUE;

set_task(1.0,"give_stuff",id);

return PLUGIN_CONTINUE;
}

public admin_motd(id,level,cid) {

	if (!cmd_access(id,level,cid,1))
	return PLUGIN_CONTINUE
	
	show_motd(id,"vip.txt","VIP by Kukulis")
	return PLUGIN_CONTINUE   
}




public give_stuff(id)
{
if(!is_user_connected(id))
return;

   fm_give_item(id, "item_assaultsuit");
   fm_give_item(id, "weapon_flashbang");
   fm_give_item(id, "weapon_flashbang");
   fm_give_item(id, "weapon_hegrenade");
   fm_give_item(id, "weapon_smokegrenade");
   cs_set_user_money(id, cs_get_user_money(id) + 500); 
   set_user_gravity (id, 0.70);
}

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_viplist", id)
	return PLUGIN_CONTINUE
}

public print_viplist(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_CVAR)
				get_user_name(id, adminnames[count++], 31)

	len = format(message, 255, "%s Online VIP: ",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 online VIP.")
		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()
}
User avatar
MzQ*
Membru eXtream
Membru eXtream
Posts: 3473
Joined: 07 Jul 2014, 18:30
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 10 times
Been thanked: 8 times
Contact:

03 Aug 2015, 17:45

Radu pTm wrote:Posteaza sma la plugin.
ce are de aface cu sma?
Ai pus vip.txt in cstrike?
Image
User avatar
Derek
Membru, skill +1
Membru, skill +1
Posts: 198
Joined: 19 Nov 2014, 18:16
Detinator Steam: Da
CS Status: CsBlackDevil.Com
Detinator server CS: ZM
Fond eXtream: 0
Location: Romania
Has thanked: 1 time
Contact:

03 Aug 2015, 18:14

Am pus vip.txt in addons/configs..
User avatar
Radu pTm
Membru, skill +1
Membru, skill +1
Posts: 161
Joined: 15 Dec 2014, 14:50
Detinator Steam: Da
CS Status: Respecta si vei fi respectat !
SteamID: Radu ♣
Fond eXtream: 0
Location: Strehaia
Contact:

03 Aug 2015, 20:34

MzQ* wrote:
Radu pTm wrote:Posteaza sma la plugin.
ce are de aface cu sma?
Vroiam sa vad

Code: Select all

public admin_motd
Derek, vip.txt se pune in cstrike
Image
User avatar
Derek
Membru, skill +1
Membru, skill +1
Posts: 198
Joined: 19 Nov 2014, 18:16
Detinator Steam: Da
CS Status: CsBlackDevil.Com
Detinator server CS: ZM
Fond eXtream: 0
Location: Romania
Has thanked: 1 time
Contact:

04 Aug 2015, 01:06

L-am adaugat in csstrike si functioneaza! Va multumesc frumos pentru ajutorul acordat, sunceti cei mai buni!
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 72 guests