Jump to content

Cerere Plugin Vip


Real^DerMo

Recommended Posts

Nume : VIP


Versiune : -


Descriere detaliata : as vrea un vip pentru respawn , sa aiba 120 hp cand il spawneaza max hp 150 (15 hp kill /30 hs) ,cand dai /vip sa arate vipi online ,cand dai /wantvip sa arate avantajele vipului , sa aiba si viteza 400 cand schimba pe lama, si daca se poate si un meniu cu arme gold Ak gold , m4a1 ,deagle si awp la astea sa fie x2 dmg ,Multumesc anticipat


  • Like 1
Link to comment
Share on other sites

Pai asteapta si tu. Crezi ca exista in aceasta comunitate scripteri ? Ajuta si ei cu informatiile ce le gasesc pe internet sau poate cer ajutorul cuiva care intradevar se pricepe la modificarea unui plugin . 

Eu una nu ma pricep la asa ceva, insa vreau sa incep sa invat, insa am cautat toata ziua ceva care sa fie cam pe aproape cu ce ai cerut tu, dar nu am gasit . 

Daca voi gasii, voi posta, insa este nevoie de rabdare si asteptare . 

  • Like 2
Link to comment
Share on other sites

V.I.P :

 

#include <amxmodx>

#include <amxmisc>

#include <cstrike>

#include <fun>

#include <engine>

#include <hamsandwich>

#include <fakemeta_util>

#include <stripweapons>

#include <colorchat>

 

static const COLOR[] = "^x04"

new maxplayers

new gmsgSayText

new health_add

new health_hs_add

new health_max

new nKiller

new nKiller_hp

new nHp_add

new round;

new nHp_max

new g_menu_active

#define Keysrod (1<<0)|(1<<1)|(1<<2)|(1<<9)

 

#define MENU_TIME 10.0

#define SPEED 400

 

public plugin_init()

{

register_plugin("VIP", "1.0.0", "iNdio")

health_add = register_cvar("vip_hp_kill", "15")

health_hs_add = register_cvar("vip_hp_hs", "30")

health_max = register_cvar("vip_hp_max", "150")

g_menu_active = register_cvar("vip_guns_menu", "1")

register_clcmd("say /wantvip","ShowMotd")

maxplayers = get_maxplayers()

gmsgSayText = get_user_msgid("SayText")

register_clcmd("say", "handle_say")

register_event("TextMsg","Event_RoundRestart","a","2Game_w")

register_event("DeathMsg", "hook_death", "a", "1>0")

register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod")

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

RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");

register_event("HLTV", "event_new_round", "a", "1=0", "2=0")

register_event("ResetHUD", "ResetHUD", "be")

register_event("CurWeapon", "EventCurWeapon", "be", "1=1");

}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage)

{

if (is_user_connected(attacker) && is_user_alive(attacker) && get_user_flags(attacker) & ADMIN_LEVEL_H)

{

SetHamParamFloat(4, damage * 2);

}

}

 

public EventCurWeapon(id)

{

 

if ( get_user_flags( id ) & ADMIN_LEVEL_H )

{

new iWeapon = read_data(2);

 

if( iWeapon == CSW_KNIFE )

{

set_user_maxspeed(id, float(SPEED));

}

}

}

 

public ResetHUD(id)

{

set_task( 0.5, "VIP", id + 6910 )

 

if ( cs_get_user_team( id ) == CS_TEAM_T )

{

if ( get_user_weapon( id ) == CSW_C4 )

{

set_task( 0.6, "Bomb", id + 6910 )

}

}

}

 

public VIP( TaskID, id )

{

new id = TaskID - 6910

 

if ( get_user_flags( id ) & ADMIN_LEVEL_H )

{

message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) )

write_byte( id )

write_byte( 4 )

message_end( )

}

 

return PLUGIN_HANDLED

}

 

public p_Spawn(id){

 

if(get_user_flags(id) & ADMIN_LEVEL_H)

{

set_user_health(id, 120)

}

}

 

public event_new_round()

{

if (!get_pcvar_num(g_menu_active))

return;

 

round++

 

new players[32], player, pnum;

get_players(players, pnum, "a");

 

for( new i = 0; i < pnum; i++ )

{

player = players;

if(get_user_flags(player) & ADMIN_LEVEL_H)

{

if(round > 2)

{

Showrod(player);

}

}

}

 

set_task( MENU_TIME, "task_close_menu", 16309 )

}

 

public task_close_menu(id)

{

show_menu( 0, 0, "^n", 1 )

}

 

public Event_RoundRestart(id)

{

round=0;

}

 

public hook_death()

{

// Killer id

nKiller = read_data(1)

 

if ( (read_data(3) == 1) && (read_data(5) == 0) )

{

nHp_add = get_pcvar_num (health_hs_add)

}

else

nHp_add = get_pcvar_num (health_add)

nHp_max = get_pcvar_num (health_max)

// Updating Killer HP

if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))

return;

 

nKiller_hp = get_user_health(nKiller)

nKiller_hp += nHp_add

// Maximum HP check

if (nKiller_hp > nHp_max) nKiller_hp = nHp_max

set_user_health(nKiller, nKiller_hp)

// Hud message "+15/+30 HP"

set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)

show_hudmessage(nKiller, "+%d HP", nHp_add)

 

}

 

public Showrod(id)

{

show_menu(id, Keysrod, "\rVIP Menu^n\y1. \wM4A1 + Deagle^n\y2. \wAK47 + Deagle^n\y3. \wAWP + Deagle^n^n\r0. \wAnuleaza^n", -1, "rod") // Display menu

}

public Pressedrod(id, key)

{

 

switch (key) {

case 0: {

StripWeapons(id, Primary)

StripWeapons(id, Secondary);

give_item(id,"weapon_m4a1")

give_item(id,"weapon_deagle")

give_item(id, "item_assaultsuit");

give_item(id, "item_thighpack");

cs_set_user_bpammo(id, CSW_M4A1, 90 );

cs_set_user_bpammo(id, CSW_DEAGLE, 35 );

ColorChat(id, GREEN, "^x01 Ai primit^x04 M4A1^x01 +^x04 Deagle^x01!")

}

 

case 1: {

StripWeapons(id, Primary)

StripWeapons(id, Secondary);

give_item(id,"weapon_ak47")

give_item(id,"weapon_deagle")

give_item(id, "item_assaultsuit");

give_item(id, "item_thighpack");

cs_set_user_bpammo(id, CSW_AK47, 90);

cs_set_user_bpammo(id, CSW_DEAGLE, 35 );

ColorChat(id, GREEN, "^x01 Ai primit^x04 AK47^x01 +^x04 Deagle^x01!")

}

 

case 2: {

StripWeapons(id, Primary)

StripWeapons(id, Secondary);

give_item(id, "weapon_awp");

give_item(id, "weapon_deagle");

give_item(id, "item_assaultsuit");

give_item(id, "item_thighpack");

cs_set_user_bpammo(id, CSW_AWP, 90 );

cs_set_user_bpammo(id, CSW_DEAGLE, 35 );

ColorChat(id, GREEN, "^x01 Ai primit^x04 AWP^x01 +^x04 Deagle^x01!")

}

 

case 9: {

}

}

return PLUGIN_CONTINUE

}

 

 

public ShowMotd(id)

{

show_motd(id, "vip.txt")

}

 

public handle_say(id) {

new said[192]

read_args(said,192)

if( contain(said, "/vip") != -1 )

set_task(0.1,"print_adminlist",id)

return PLUGIN_CONTINUE

}

 

public print_adminlist(user)

{

new adminnames[33][32]

new message[256]

new id, count, x, len

 

for(id = 1 ; id <= maxplayers ; id++)

if(is_user_connected(id))

if(get_user_flags(id) & ADMIN_LEVEL_H)

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, "Niciun VIP online!")

print_message(user, message)

}

}

 

print_message(id, msg[]) {

message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)

write_byte(id)

write_string(msg)

message_end()

}

 

 

 

V.I.P.txt :

 

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><left>V.I.P Advantages</center></b></font><br />

<font size="1" color="#c0c0ff">

<UL>

<LI TYPE=square>120 Hp on spawn!</LI><br>

<LI TYPE=square>150 Max Hp!</LI><br>

<LI TYPE=square>15 Hp/Kill!</LI><br>

<LI TYPE=square>30 Hp/Hs!</LI><br>

<LI TYPE=square>Shown as VIP on /vip!</LI><br>

<LI TYPE=square>Appear VIP on scoreboard (TAB)!</LI><br>

<LI TYPE=square>400 Speed on knife!</LI><br>

<LI TYPE=square>V.I.P Menu (m4a1-ak47-awp + deagle)!</LI><br>

<font size="2" color="#ffffff"><strong>VIP price: €/monthly or 9€/permanently</strong></font><br />

<font size="2" color="#ffffff"><strong>Contact me (Y!M): <font color=#FF6600>pgl.indio</strong></font><br />

</body>

</html>

 

 

 

 

Nu ai arme gold, daca vrei parasuta/fadescreen (culoare la kill)/double jump/bani), lasi reply! Si i-au legătura cu scripteru(autorul) si ți le va adaugă. Arme gold nu vrea .

Compilezi .sma-ul apoi urci vip.txt (sa iti adaugi Y!M + pretul in acest fisier) in cstrike/

 

Ai flag de acces "t" , astept reply dacă mai doresti adaugari.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...