Raised This Month: $ Target: $400
 0% 

[HELP] in scrpit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 01-12-2016 , 15:21   [HELP] in scrpit
Reply With Quote #1

hi guys i edited codes plugin Blizzard link HERE
i removed some codes now the plugin give vip round just to CT team.
well now let me take example:

now i will start the round
amx_vip ok ??
the plugin will give vip to random player from CT team
example: it will give the vip to player his name "acer"
now when the round started! any one will kill the vip "acer"
the round will ended!

ok??
well the round ended in next round anyone kill "acer" the round
also will ended!! i need the plugin work in one round
in mean in new rounds when killed "acer" nothing will happen
i hope you understand what i need

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <colorchat>
#include <csx>
#include <fun>

#pragma semicolon 1

#define PLUGIN "Protect The VIP"
#define VERSION "1.0.2"
#define AUTHOR "Blizzard"

#define CHAT_PREFIX "^4[CS]^1"

// Variables
new g_results;
new const 
CTVIP[ ] = { "models/player/vip/vip.mdl" };
new const 
VIPRadio[] = { "radio/vip.wav" };
new 
ct_vip_userid;
new 
bool:g_bIsVIP33 ];
new 
bool:g_bInTeamSpec33 ];
new 
CsTeams:Team;

public 
plugin_precache( )
{
precache_modelCTVIP );
precache_soundVIPRadio );
}

public 
plugin_init( ) {
register_pluginPLUGINVERSIONAUTHOR );
server_print"^n^t%s v%s, Copyright (C) 2013 by %s^n"PLUGINVERSIONAUTHOR );
register_cvar"protectvip_version"VERSIONFCVAR_SERVER|FCVAR_SPONLY );
register_concmd("amx_vip""xrun");
register_event"DeathMsg""Event_DeathMsg""a" );
register_messageget_user_msgid"TextMsg" ), "msgTextMsg" );
g_results CreateHudSyncObj();
}

public 
xrun()
{
arraysetg_bIsVIPfalsesizeofg_bIsVIP ) );
Set_CT_VIP( );    
}

public 
Event_DeathMsg()
{
new 
iVictim read_data);
new 
CT_VIP find_player"k"ct_vip_userid );
if( 
iVictim == CT_VIP )
{
ForceTeamLoseCS_TEAM_CT );
cs_reset_user_modelCT_VIP );
fm_set_rendering(CT_VIP);
}
}

public 
msgTextMsg( )
{
static 
textmsg22 ];
get_msg_arg_string2textmsg21 );
    
new 
CT_VIP find_player"k"ct_vip_userid );
 
// Terrorist Win
if( equaltextmsg"#Terrorists_Win" ) )
{
if( !
is_user_aliveCT_VIP ) )
{
set_hudmessage(2552020, -1.00.1700.03.02.01.0, -1);
ShowSyncHudMsg(0g_results,"Terrorists have taken over the world!") ;
}
else
{
set_hudmessage(2552020, -1.00.1700.03.02.01.0, -1);
ShowSyncHudMsg(0g_results,"Terrorists have taken over the world!") ;
}
return 
PLUGIN_HANDLED;            
}
return 
PLUGIN_CONTINUE;
}

public 
ForceTeamLoseCsTeams:PTeam )
{
new 
iPlayers32 ], iNumiPlayers;
get_playersiPlayersiNum"ae"PTeam == CS_TEAM_CT "CT" "TERRORIST" );
Team PTeam;
for( 
0iNumi++ )
{
Players iPlayers];
g_bInTeamSpecPlayers ] = true;
cs_set_user_teamPlayersCS_TEAM_SPECTATOR );
set_task0.1"FixPlayersTeam"Players );
}
}

public 
FixPlayersTeam(id)
{
if(
g_bInTeamSpec[id])
{
cs_set_user_team(idTeam);
}
}

stock Set_CT_VIP()
{
new 
iPlayers[32], iNumCT_VIP;
get_players(iPlayersiNum"ae""CT");
    
if(!
iNum) return;
    
CT_VIP iPlayers[random(iNum)];
ct_vip_userid get_user_useridCT_VIP);
    
g_bIsVIP[CT_VIP] = true;
    
for(new 
0iNumi++)
{
if(
iPlayers[i] != CT_VIP)
{
ColorChat(iPlayers[i], GREY"%s ^3%s^1 is now a^4 Captain"CHAT_PREFIXuser_name(CT_VIP));
}

else if(
CT_VIP)
{
ColorChat(CT_VIPGREY"%s You are the^4 Captain^1 be careful to yourself..."CHAT_PREFIX);
set_user_healthCT_VIP150 );
cs_set_user_armor(CT_VIP100CS_ARMOR_VESTHELM);
cs_set_user_model(CT_VIP"vip");
fm_set_rendering(CT_VIPkRenderFxGlowShell2550186kRenderNormal10);
}
client_cmd(iPlayers], "spk %s"VIPRadio);
}
}

stock user_name(id)
{
new 
szName[32];
get_user_name(idszNamecharsmax(szName));
return 
szName;
}

// Set entity's rendering type (from fakemeta_util)
stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16)
{
static 
Float:color[3];
color[0] = float(r);
color[1] = float(g);
color[2] = float(b);

set_pev(entitypev_renderfxfx);
set_pev(entitypev_rendercolorcolor);
set_pev(entitypev_rendermoderender);
set_pev(entitypev_renderamtfloat(amount));

__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 01-13-2016 , 14:03   Re: [HELP] in scrpit
Reply With Quote #2

no one can help me?
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-13-2016 , 19:28   Re: [HELP] in scrpit
Reply With Quote #3

Go post in the request forum.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 01-18-2016 , 06:03   Re: [HELP] in scrpit
Reply With Quote #4

solved
__________________

Last edited by arvEL.; 01-18-2016 at 06:10.
arvEL. is offline
Send a message via Skype™ to arvEL.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode