[inchis] Cerere plugin+modificare plugin

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 .
Locked
ExTaZzy
Membru, skill 0
Membru, skill 0
Posts: 29
Joined: 03 May 2013, 07:14
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

02 Dec 2013, 10:27

1.As avea si eu nevoie de un plugin VIP pentru deathrun si sa contina la /vipmenu : viata 255, pachet grenazi, respawn(doar odata pe runda),viteza, si deagle cu 7 gloante+Sa apara VIP in dreptul jucatorului cand apesi TAB

2. Am un plugin care la fiecare inceput de runda serverul alege aleatoriu un jucator de la CT/T si ii ofera un costum de Mos Craciun + niste abilitati. As vrea, daca se poate, sa modificati sa aleaga doar de la CT nu si de la Tero
Sma:

Code: Select all

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

#define PLUGIN "Xmas Random"
#define VERSION "1.0"
#define AUTHOR "S3ekEr^"

new const g_szModel[] = "xmas_red";

new g_iLastSaverId;

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR);

register_logevent("logevent_RoundStart", 2, "1=Round_Start");

RegisterHam(Ham_Spawn, "player", "fwd_HamPlayerSpawnPost", 1);
}

public plugin_precache()
{
new szBuff[128];
formatex(szBuff, charsmax(szBuff), "models/player/%s/%s.mdl", g_szModel, g_szModel);

precache_model(szBuff);
}

//lower the SVC_BAD error / maybe?
public logevent_RoundStart()
set_task(0.1, "task_SetSanta");

public fwd_HamPlayerSpawnPost(id)
{
if(!is_user_connected(id))
return HAM_IGNORED;

if(id == g_iLastSaverId)
cs_reset_user_model(id);

return HAM_IGNORED;
}

public task_SetSanta()
{
//get random player and don't get it twice in a row
new iPlayer;
do {
iPlayer = GetRandomPlayer("ah");
}
while((iPlayer == g_iLastSaverId || !is_user_connected(iPlayer)) && iPlayer != 0);
if(!iPlayer)
return;

set_user_health(iPlayer, 150);
cs_set_user_armor(iPlayer, 100, CS_ARMOR_VESTHELM);

give_item(iPlayer, "weapon_hegrenade");
give_item(iPlayer, "weapon_smokegrenade");
give_item(iPlayer, "weapon_flashbang");

cs_set_user_model(iPlayer, g_szModel);

new szName[32];
get_user_name(iPlayer, szName, charsmax(szName));

player_color( 0, ".g----------------------------------------------------------------------------");
player_color( 0, ".g[.vXmas.g] .e%s .ga fost ales salvatorul .vCraciunului! .g.v150HP.g+.v100ARMURA.g-HE-FLASH! .eHo Ho Ho.g!", szName);
player_color( 0, ".g----------------------------------------------------------------------------");

g_iLastSaverId = iPlayer;
}

//get random player
stock GetRandomPlayer(const flags[] = "", const team[]= "")
{
new iPlayers[32], iNum;
get_players(iPlayers, iNum, flags, team);

return iNum ? iPlayers[random_num(0, iNum - 1)] : 0;
}

stock player_color( const id, const input[ ], any:... )
{
new count = 1, players[ 32 ]

static msg[ 191 ]
vformat( msg, 190, input, 3 )

replace_all( msg, 190, ".v", "^4" ) /* verde */
replace_all( msg, 190, ".g", "^1" ) /* galben */
replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */

if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
{
for( new i = 0; i < count; i++ )
{
if( is_user_connected( players[ i ] ) )
{
message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
write_byte( players[ i ] );
write_string( msg );
message_end( );
}
}
}
}
Multumesc anticipat ! :)
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:

02 Dec 2013, 10:29

Citeste regulamentul.
Inchis.
Retras
Locked

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests