It is currently 15 Feb 2019 21:02






Reply to topic  [ 1 post ] 
 Cerere Modificare VIP 
Author Message
Online
Membru, skill 0
Membru, skill 0

Joined: 19 Dec 2018 00:57
Posts: 75
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
Fond eXtream: 0
Salut vreau sa imi modificati plugins asta de vip si sa inlocuiti un nume si vreau sa imi mai adaugati in el si arme acuma are doar ak si deagle si vreau sa imi adaugati m4a1 si awp
Si vreau sa imi mai adaugati si comanda /vips sa se vada vipi on pe sv
poza cu ce nume sa inlocuiti in loc de shift sa puneti speed -https://imgur.com/a/cWsS6KP
sma la vip
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

#pragma tabsize 0

#define VIP_ACCESS ADMIN_LEVEL_H
#define VITEZA 400.0

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

new bool:hs[33]

public plugin_init() {
RegisterHam( Ham_Spawn, "player", "ham_PlayerSpawnPre", true );

register_clcmd("say /vm","VM")
register_clcmd("say_team /vm","VM")
}

public client_putinserver(id)
{
if(is_user_vip(id)&&is_user_connected(id)&&!is_user_bot(id))
{
new name[32]
get_user_name(id,name,charsmax(name))
client_print(0,print_chat,"Vipu %s s-a conectat ",name)
}
}

public client_PostThink(id) if(is_user_alive(id)&&is_user_vip(id)&&hs[id]) set_user_maxspeed(id,VITEZA)

public ham_PlayerSpawnPre(id) if(is_user_alive(id)&&is_user_vip(id)&&hs[id]) hs[id]=false

public VM(id)
{
if(!is_user_alive(id))
{
client_print(id,print_chat,"Comanda poate fii folosita cand esti doar in viata")
return
}
if(!is_user_vip(id))
{
client_print(id,print_chat,"Comanda poate fii folosita cand VIP")
return
}

new gMenu = menu_create( "MENIU\y V.I.P", "thisContent" );

menu_additem( gMenu, "AK47", "1" );
menu_additem( gMenu, "DEAGLE", "2" );
menu_additem( gMenu, "+300 HP", "3" );
menu_additem( gMenu, "+SPEED", "4" );

menu_setprop( gMenu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, gMenu, 0 );
}
public thisContent( id, Menu, Item )
{
if( Item < 0 )
{
return 0;
}

new Key[ 3 ],Access, CallBack;
menu_item_getinfo( Menu, Item, Access, Key, 2, _, _, CallBack );

new isKey = str_to_num( Key );
switch( isKey )
{
case 1:
{
give_item(id,"weapon_ak47")
cs_set_user_bpammo(id,CSW_AK47,90)
}
case 2:
{
give_item(id,"weapon_deagle")
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 3:
{
set_user_health(id,get_user_health(id)+300)
}
case 4:
{
if(hs[id]) return PLUGIN_HANDLED

set_user_maxspeed(id,VITEZA)

hs[id]=true
}
}

return 1;
}

EDIT: Am rezolvat cu armele dar nu reusesc sa fac sa apara vipi on si sa schimb numele ala ma poate ajuta cineva?


10 Feb 2019 11:09
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group