Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Lost

Problemz VIPEM, pisanie na sayu

6 replies w tym temacie

Recommended Posts

Otóz nie wiem jak wgrać tego vipa i jak go dodawać. Szukałem po goglach i nie znalazłem nic interesującego.

 

Wygenerowałem sobie takiego vipa

 

 

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

new bool:g_Vip[33], g_hudmsg, weapon_id;

public plugin_init(){
register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
register_clcmd("say /vip", "g_ShowMotd");
register_event("Damage", "damage", "b", "2!0", "3=0", "4!0");
g_hudmsg=CreateHudSyncObj();
register_message(get_user_msgid("SayText"),"handleSayText");
register_logevent("Round_end", 2, "1=Round_End");
}
public client_authorized(id){
if(get_user_flags(id) & 33554690 == 33554690){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
cs_set_user_money(id, min(cs_get_user_money(id)+1000, 20000), 1);
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_FLASHBANG,2);
give_item(id, "weapon_smokegrenade");
if(get_user_team(id)%3){
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
weapon_id=find_ent_by_owner(-1, "weapon_deagle", id);
if(weapon_id)cs_set_weapon_ammo(weapon_id, 7);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
if(get_user_team(id)%2){
give_item(id, "item_thighpack");
}
}
public g_ShowMotd(id){
if(is_user_connected(id))
show_motd(id, "vip.txt", "Informacje o vipie");
}
public damage(id){
new attacker=get_user_attacker(id);
new damage=read_data(2);

if(g_Vip[id]){
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1);
ShowSyncHudMsg(id, g_hudmsg, "%i^n", damage);
}
if(is_user_connected(attacker) && g_Vip[attacker]){
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1);
ShowSyncHudMsg(attacker, g_hudmsg, "%i^n", damage);
}
}
public handleSayText(msgId,msgDest,msgEnt){
new id = get_msg_arg_int(1);

if(is_user_connected(id) && g_Vip[id]){
new szTmp[256],szTmp2[256];
get_msg_arg_string(2,szTmp, charsmax(szTmp))

new szPrefix[64] = "^x04[VIP]";

if(!equal(szTmp,"#Cstrike_Chat_All")){
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2)," ");
add(szTmp2,charsmax(szTmp2),szTmp);
}
else{
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 :  %s2");
}
set_msg_arg_string(2,szTmp2);
}
return PLUGIN_CONTINUE;
}
public bomb_planted(id){
if(is_user_alive(id) && g_Vip[id])
cs_set_user_money(id,cs_get_user_money(id) + 100);
}
public bomb_defused(id){
if(is_user_alive(id) && g_Vip[id])
cs_set_user_money(id,cs_get_user_money(id) + 100);
}
public Round_end(){
for(new i = 1; i < 33; i++){
if(is_user_alive(i) && g_Vip[i])
cs_set_user_money(i,cs_get_user_money(i) + 100);
}
}

 

i nie wiem gdzie to dodac i jak wgl zrobic tego vipa

 

2 problem to zeby na sayu co jakis czas pisalo np : Chcesz kupic vipa pisz na gg ....... wejdz na forum ....

Share this post


Link to post
Share on other sites

Po zrobieniu vipa na amxx.pl dostajesz samo .sma. Nastepnie musisz je skompilowac na amxx.pl/kompilator ja Ci pomoge, gdyż go skompilowałem (patrz załącznik). Wystarszy, że wrzucisz ten kod do pliku vip.sma; plik z zalacznika z rozszerzeniem .amxx na ftp z reszta.

 

 

@edit.

 

 

Ad 2. Ten plugin nazywa się ad_manager.amxx - http://amxx.pl/topic/20384-ad-manager/

Ten plugin jest modyfikowany, aby reklama wyświetlała się co 15 sec bodajże.

vip.amxx

Edited by BtL

Share this post


Link to post
Share on other sites
  • Like 1

co do ad_manger to gdzie wpisać to co chce ? ; / wiem raczej, że w tym pliku co rozszerzenie ini, ale nie ma tam nic ; /

 

dodałem ten mój kod do pliku .sma i ten twój zalącznik dalem do plugins, a te cvary skad mam wziasc; / ?

Edited by Lost

Share this post


Link to post
Share on other sites

Nie musisz miec zadnych cvarow. Dodajesz do users.ini graczowi flage, taka jak dodales przy robieniu pluginu i do tego flage "z", czyli zwykly gracz. Reklamy natomiast dodajesz to advertisements.ini. Przykład :

 

!t - kolor tekstu - niebieski dla CT, czerwony dla TT
!g - kolor tekstu - zielony
!n - zwykly kolor tekstu 

np.
!t Sprawdz co mozesz zyskac jako VIP ! !g Wpisz /vip

Share this post


Link to post
Share on other sites
  • Like 1

Proszę podawać linki do pluginów i poradników umieszczonych na naszym forum. Wystarczy poszukać, compilator i inne, są u Nas.

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×