Cerere plugin VIP PB

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
lcsursu
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 12 May 2013, 19:38
Detinator Steam: Da
CS Status: WWW.LCSNET.RO
Detinator server CS: respawn.lcsnet.ro
SteamID: private
Location: Targu-Neamt
Has thanked: 2 times

12 May 2013, 19:44

Buna ziua, as dori si eu un plugin VIP pentru modul paintball,care sa apara apasand tasta TAB si care sa ofere :

250 HP
100 Armura
Pachet Grenazi (1He, 2FB, 1smoke)
Viteza mai mare cu 100 permanent

Litera de acces pentru vip sa fie " l " (L)
Multumesc !
Last edited by lcsursu on 14 May 2013, 14:36, edited 1 time in total.
Image
RoyalServer 2
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5317
Joined: 27 May 2012, 11:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

14 May 2013, 02:39

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "PaintBall VIP"
#define VERSION "1.0"
#define AUTHOR "tre3fla"


public plugin_init( ) {
	register_plugin( PLUGIN, VERSION, AUTHOR )
	register_clcmd( "+showscores", "giveVipItems" )
}

public giveVipItems( id ) {
	if( !(get_user_flags( id )  & ADMIN_RCON )) {
		return
	}
	
	if( !user_has_weapon( id, CSW_HEGRENADE )) {
		give_item( id, "weapon_hegrenade" )
	}
	
	if( !user_has_weapon( id,  CSW_FLASHBANG )) {
		give_item( id,  "weapon_flashbang" ) 
		cs_set_user_bpammo( id, CSW_FLASHBANG, 2 )
	}
	
	if( !user_has_weapon( id,  CSW_SMOKEGRENADE )) {
		give_item( id, "weapon_smokegrenade" )
	}
}
Posibil bug: Sa numai mearga scoretab, adica cand jucatorii dau TAB sa nu le arate nimic.
User avatar
Nubo
Fost moderator
Fost moderator
Posts: 2734
Joined: 11 Jul 2012, 18:45
Detinator Steam: Da
CS Status: [əˈnɒn.ɪ.məs]
Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
Has thanked: 8 times
Been thanked: 27 times

14 May 2013, 11:57

tre3fla, omul vrea in TAB langa nume sa fie scris VIP, iar beneficiile sa le primeasca la fiecare spawn (presupun).
Cand nu merge acest forum sunt online aici:
  • * Skype: nubo_cs
    * Y!M ID: nubo_cs
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5317
Joined: 27 May 2012, 11:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

14 May 2013, 13:11

Greseala mea.
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "PaintBall VIP"
#define VERSION "1.0"
#define AUTHOR "tre3fla"


public plugin_init( ) {
	register_plugin( PLUGIN, VERSION, AUTHOR )
	
	RegisterHam( Ham_Spawn, "player", "fwPlayerSpawn", 1 )
	register_message( get_user_msgid( "ScoreAttrib" ), "VipInScoreTab" )
}

public fwPlayerSpawn( id ) {
	if( is_user_alive( id ) && get_user_flags( id ) & ADMIN_RCON ) {
		giveVipItems( id ) 
	}
}

public giveVipItems( id ) {
	give_item( id, "weapons_hegrenade" )
	give_item( id, "weapon_flashbang" )
	give_item( id, "weapon_flashbang" )
	give_item( id, "weapon_smokegrenade" )
	set_user_maxspeed( id, get_user_maxspeed( id ) + 100.0 )
	set_user_health( id, 250 )
	set_user_armor( id, 100 )
}

public VipInScoreTab( id ) {
	new id = get_msg_arg_int( 1 )
	if( is_user_alive(id) && get_user_flags( id ) & ADMIN_RCON ) {
		set_msg_arg_int( 2, ARG_BYTE, get_msg_arg_int( 2 )| 4 )
	}
}
lcsursu
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 12 May 2013, 19:38
Detinator Steam: Da
CS Status: WWW.LCSNET.RO
Detinator server CS: respawn.lcsnet.ro
SteamID: private
Location: Targu-Neamt
Has thanked: 2 times

14 May 2013, 17:20

Functioneaza perfect.Multumesc frumos tre3fla.Puteti da TC!
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 14 guests