Deathrun VIP

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

06 Dec 2013, 10:08

Descriere: acesta este un plugin pentru modul deathrun (800/700 gravity)

Descarcare:
| Afiseaza codul
/*
	Developers :
		LordOfNothing - lead developer !

	VIP acces  (flag "ab")  

	
	Vip console commands : amx_slay,amx_revive;
	Vip chat commands :  /respawn ;
	Vip feature : USP , New Model , 150 Hp , Vip Tab !


	ChangeLog : 

   		1.0 - first release !
		1.1 - replace set_user_info with cs_set_user_model !
		1.2 - code tested and rewrited (Working) !
		1.3 - /respawn removed ! , some spam msg was removed !
		1.4 - added new argument as amx_revive !
		1.5 - /respawn added, revive removed !
		1.6 - is_user_vip , rewrited !
		1.7 - acuma numai la ct va da model de vip !

*/

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


#define PLUGIN "Deathrun Mini VIP (DMV)"
#define VERSION "1.7"
#define AUTHOR "LordOfNothing"

#define VIP_ACCESS    ADMIN_IMMUNITY

#define is_user_vip(%1)    ( get_user_flags(%1) & VIP_ACCESS ) 


#define TAG "[VIP]"

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

	RegisterHam(Ham_Spawn, "player", "Vip_Spawn", 1);

	register_clcmd("say /respawn","HookRespawn");
	register_clcmd("say_team /respawn","HookRespawn");
}

public client_putinserver(id)
{
	if(is_user_vip(id))
	{
		new vipname[35];
		get_user_name(id, vipname, 34);	
		ColorChat(0, GREY, "%s ^4VIP-ul ^3%s ^4se conececteaza pe server ! ",TAG,vipname);
	}
}

public client_disconnect(id)
{
	if(is_user_vip(id))
	{
		new vipname[35];
		get_user_name(id, vipname, 34);	
		ColorChat(0, GREY, "%s ^4VIP-ul ^3%s ^4se deconececteaza de pe server ! ",TAG,vipname);
	}
}

public Vip_Spawn(id)
{
	if(is_user_vip(id))
	{
		set_user_health(id, 150);
		give_item(id, "weapon_usp");
		cs_set_user_bpammo(id, CSW_USP, 100);
		set_task(1.0, "iScoreBoard", id + 6969)

		if(get_user_team(id) == 2)
		{
			cs_reset_user_model(id);
			cs_set_user_model(id, "vip");
		}

	}
}

public iScoreBoard(tID) {
        
        new id = tID - 6969;
        
        message_begin(MSG_ALL, get_user_msgid("ScoreAttrib"));
        write_byte(id);
        write_byte(4);
        message_end();
}


public HookRespawn(id)
{
	if(is_user_vip(id))
	{
		if(!is_user_alive(id))
		{
			ExecuteHam(Ham_CS_RoundRespawn, id);
			ColorChat(id, GREY, "%s ^4Ai fost respawnat !",TAG);
			return PLUGIN_HANDLED

		}
		else
		{
			ColorChat(id, GREY,"%s ^4Trebuie sa fii mort ca sa te poti respawna !",TAG);
			return PLUGIN_HANDLED
		}

	}
	else
	{
		ColorChat(id, GREY, "%s ^4Nu esti vip !",TAG);
		return PLUGIN_HANDLED
	}
	return PLUGIN_CONTINUE
}
Nume: Deathrun VIP
Versiune: 1.7
Link oficial: ExtreamCS

Instalare:
1. Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting
2. Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

nume_plugin.amxx

Comenzi Chat):
  • /respawn
Iteme VIP :[/b]
  • USP
    acces /respawn
    Model de VIP (Doar la CT)
    150 health
    VIP la score !
Last edited by LordOfNothing on 06 Dec 2013, 11:49, edited 1 time in total.
Rapidserver
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 21:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 335 times
Been thanked: 570 times
Contact:

06 Dec 2013, 11:27

Code: Select all

1.7 - acuama numi pentru cT da model de VIP !
Imi traduci si mie ce scrie aici?
@Bine lucrat, desi se poate si mai bine.
Retras
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

06 Dec 2013, 11:50

lol acum am vazut si eu :))), scuze updatE !
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

06 Dec 2013, 15:00

Code: Select all

if(is_user_vip(id))
->>

Code: Select all

if(is_user_vip(id) && is_user_alive(id))
Pentru ca o sa iti apara erori in consola :) ma refer in Ham_Spawn

ON: Bun plugin,e perfect pentru dr :)
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

07 Dec 2013, 08:22

cosmyn mai citeste odata codul cu ham_spawn :))
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2808
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 230 times
Been thanked: 128 times
Contact:

07 Dec 2013, 12:36

El se referea sa verifici daca playerul este in viata. :-j
Contact: Activitate scazuta.
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

07 Dec 2013, 12:57

DnD. Gold wrote:El se referea sa verifici daca playerul este in viata. :-j
aaaa in vip_spawn , scuze am crezut ca in hookRespawn , iertatima

cosmyn dar totusi nu cred ca e necesar pentru ca cand folosesti Ham

RegisterHAm :

RegisterHam(Ham_Spawn, "player", "VIP_Spawn", 1=dupa ce sa respawnat, 0=inainte sa se respawneze);
si e setat pe 1 deci iti dai seama singur ca deja e definit in hamsandwich.dll singur :)
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests