It is currently 19 Oct 2018 05:29



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
 Plugin-uri 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut doresc si eu 2 plugin-uri daca aveti sau daca gasesc pe undeva.

1.Un plugin cu misiuni cand faci 50 kill-uri sa primesti x bani , cand faci 50 kill-uri cu arma m4a1 sa primesti x bani , cand faci 50 kill-uri cu arma ak47 sa primesti x bani.(Daca puteti sa faceti cu case 1 case 2 case 3 este ok , ca sa ma descurc si eu mai usor)

Editat de Do[N]e ;3
Code:
2. REGULI APLICABILE AUTORULUI TOPICULUI
2.1 Intr-un topic (cerere) puteti cere un singur plugin.


Last edited by Laurentiu P. on 03 Oct 2018 21:29, edited 1 time in total.

Editat. ( Aplicare regulament )



03 Oct 2018 20:27
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Up!


09 Oct 2018 18:49
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1267
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <cstrike>

new kills[33]

public client_putinserver(id) if(!is_user_bot(id)||!is_user_hltv(id)) kills[id]=0

public client_death(killer,victim,wpnindex,hitplace,TK)
{
if(!is_user_connected(killer)||!is_user_connected(victim)||victim==killer) return

kills[killer]++

if(kills[killer]==50&&!HasWeapons(victim)) cs_set_user_money(killer,69,1), kills[killer]=0

switch(wpnindex)
{
case CSW_M4A1: if(kills[killer]==50) cs_set_user_money(killer,69,1), kills[killer]=0
case CSW_AK47: if(kills[killer]==50) cs_set_user_money(killer,69,1), kills[killer]=0
}
}

bool: HasWeapons(id)
{
if(is_user_alive(id)&&get_user_weapon(id)==CSW_AK47||get_user_weapon(id)==CSW_M4A1) return true
return false
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


09 Oct 2018 20:01
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
case CSW_M4A1: if(kills[killer]==50) cs_set_user_money(killer,69,1), kills[killer]=0
Nu te supara ca te intreb ?Imi pot face ca nativul cs_set_user_money sa fie 'get' adica sa adauge nu sa seteze?Stiu ca este usor de facut dar eu am facut cu native sa le setez si imi da eroare.
native cs_get_user_money(index);
native cs_set_user_money(index, money, flash = 1);


10 Oct 2018 17:01
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1267
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <cstrike>

new kills[33]

public client_putinserver(id) if(!is_user_bot(id)||!is_user_hltv(id)) kills[id]=0

public client_death(killer,victim,wpnindex,hitplace,TK)
{
if(!is_user_connected(killer)||!is_user_connected(victim)||victim==killer) return

kills[killer]++

if(kills[killer]==50&&!HasWeapons(victim)) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0

switch(wpnindex)
{
case CSW_M4A1: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0
case CSW_AK47: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0
}
}

bool: HasWeapons(id)
{
if(is_user_alive(id)&&get_user_weapon(id)==CSW_AK47||get_user_weapon(id)==CSW_M4A1) return true
return false
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


10 Oct 2018 17:12
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Si ai putea sa imi faci te rog , atunci cand scrii /comandax sa-mi apara Misiunea 1: 0/50(17/50-x/50) M4A1....(Asta sa editez eu din sma) si asa si la AK47?

1.Misiunea 1 : x/50 Kill's M4A1
2.Misiunea 2 : x/50 Kill's Ak47

0.Exit

Edit:Am facut eu ceva dar nu stiu daca este ok.
Quote:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "Quest"
#define VERSION "1.0"
#define AUTHOR "Adryyy"

new kills[33]

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /quests","checkCommand")
}

public checkCommand(id){

client_death(id,0)

return PLUGIN_HANDLED;

public client_putinserver(id) if(!is_user_bot(id)||!is_user_hltv(id)) kills[id]=0

public client_death(killer,victim,wpnindex,hitplace,TK)
{
if(!is_user_connected(killer)||!is_user_connected(victim)||victim==killer) return

kills[killer]++

if(kills[killer]==50&&!HasWeapons(victim)) cs_set_user_money(killer,cs_get_user_money(killer)+10000,1), kills[killer]=0

switch(wpnindex)
{
case CSW_M4A1: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+10000,1), kills[killer]=0
case CSW_AK47: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+10000,1), kills[killer]=0
}
}

bool: HasWeapons(id)
{
if(is_user_alive(id)&&get_user_weapon(id)==CSW_AK47||get_user_weapon(id)==CSW_M4A1) return true
return false
}


10 Oct 2018 17:24
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1267
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
și când apasă pe 1 sau 2, ce să facă?

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


10 Oct 2018 20:34
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Sa nu faca nimica , doar sa te informeze ca ai x/50 killuri pentru a prima x bani.Adica ca ai de ex Misiunea 1: M4A1 30/50 - [3000$]
Si astea sa le editeze eu din sms adică sa scriu ce vreau.Sau se face ceva cu case 1 case 2 ?


11 Oct 2018 12:16
Profile multumesc WWW
Utilizator neserios
Utilizator neserios
User avatar

Joined: 10 Oct 2014 06:21
Posts: 3362
Location: Roman, Neamț
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (6 luni)
Restrictie moderator
Utilizator neserios
Fond eXtream: 0
Quest.sma | Afiseaza codul
#include < amxmodx >

native cs_get_user_money ( Client );
native cs_set_user_money ( Client, Amount );

new g_iKills [ 33 ];

public client_death ( Killer, Victim, WpnIndex, HitPlace, TK )
{
if ( !is_user_connected ( Killer ) || !is_user_alive ( Killer ) || Killer == Victim )
return;

switch ( WpnIndex )
{
case CSW_M4A1: g_iKills [ Killer ]++;
}

while ( g_iKills [ Killer ] >= 50 && get_user_weapon ( Killer ) == CSW_M4A1 )
{
cs_set_user_money ( Killer, cs_get_user_money ( Killer ) + 10000 );
g_iKills [ Killer ] = 0;
}
}

public plugin_init ( ) register_clcmd ( "/quest", "func_ShowQuest" );
public func_ShowQuest ( id ) client_print ( id, print_chat, "Kills: %d/50", g_iKills [ id ] );


Exemplu pentru arma M4A1.

Quest-Multiplu.sma | Afiseaza codul
#include < amxmodx >

native cs_get_user_money ( Client );
native cs_set_user_money ( Client, Amount );

enum
{
CSW_M4A1 = 1,
CSW_AK47
};

new g_iKills [ 33 ] [ 3 ];

public plugin_init ( ) register_clcmd ( "say /quest", "func_ShowQuest" );
public func_ShowQuest ( id )
{
new Weapon = get_user_weapon ( id );
client_print ( id, print_chat, "[AMXX] Cu arma curenta ai %d/50 killuri pentru a primi bonus.", g_iKills [ id ] [ Weapon ] );
return;
}

public client_death ( Killer, Victim, WpnIndex, HitPlace, TK )
{
if ( !is_user_connected ( Killer ) || !is_user_alive ( Killer ) || Killer == Victim )
return;

g_iKills [ Killer ] [ WpnIndex ]++;

while ( g_iKills [ Killer ] [ WpnIndex ] >= 50 )
{
cs_set_user_money ( Killer, cs_get_user_money ( Killer ) + 10000 );
g_iKills [ Killer] [ WpnIndex ] = 0;
}
}

pentru mai multe arme, nu am testat, ti-am dat doar o idee ceva despre cam cum s-ar face cel mai usor.

_________________


11 Oct 2018 15:06
Profile multumesc
Utilizator neserios
Utilizator neserios
User avatar

Joined: 10 Oct 2014 06:21
Posts: 3362
Location: Roman, Neamț
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (6 luni)
Restrictie moderator
Utilizator neserios
Fond eXtream: 0
ups, am fost putin neatent si am vazut ca nu se compila quest-multiplu

Quest-Multiplu-Fixed.sma | Afiseaza codul
#include < amxmodx >

native cs_get_user_money ( Client );
native cs_set_user_money ( Client, Amount );

enum _:eData
{
KILL_AK47 = 1,
KILL_M4A1,
KILL_AWP
}

new g_iKills [ 33 ] [ _:eData ];

public client_death ( Killer, Victim, WpnIndex, HitPlace, TK )
{
if ( !is_user_connected ( Killer ) || !is_user_alive ( Killer ) || Killer == Victim )
return;

switch ( WpnIndex )
{
case CSW_AK47: g_iKills [ Killer ] [ KILL_AK47 ]++;
case CSW_M4A1: g_iKills [ Killer ] [ KILL_M4A1 ]++;
case CSW_AWP: g_iKills [ Killer ] [ KILL_AWP ]++;
}

while ( g_iKills [ Killer ] [ WpnIndex ] >= 50 )
{
cs_set_user_money ( Killer, cs_get_user_money ( Killer ) + 10000 );
g_iKills [ Killer ] [ WpnIndex ] = 0;
}

}

_________________


11 Oct 2018 19:08
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 23 Jan 2018 19:16
Posts: 20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut , am testat si nu functioneza.


14 Oct 2018 19:25
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1267
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
continui unde am rămas | Afiseaza codul
#include <amxmodx>
#include <cstrike>

new kills[33]

public plugin_init() register_clcmd("say /comandata","KI"),register_clcmd("say_team /comandata","KI")

public client_putinserver(id) if(!is_user_bot(id)||!is_user_hltv(id)) kills[id]=0

public client_death(killer,victim,wpnindex,hitplace,TK)
{
if(!is_user_connected(killer)||!is_user_connected(victim)||victim==killer) return

kills[killer]++

if(kills[killer]==50&&!HasWeapons(victim)) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0

switch(wpnindex)
{
case CSW_M4A1: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0
case CSW_AK47: if(kills[killer]==50) cs_set_user_money(killer,cs_get_user_money(killer)+69,1), kills[killer]=0
}
}

bool: HasWeapons(id)
{
if(is_user_alive(id)&&get_user_weapon(id)==CSW_AK47||get_user_weapon(id)==CSW_M4A1) return true
return false
}

public KI(id)
{
new cct,show[512]
cct=format(show[cct],charsmax(show)-cct,"\y MISUNI:^n^n")

if(kills[id]<50) cct+=format(show[cct],charsmax(show)-cct,"\r1.\w Misiunea 1:\y %d\w/\r50\w Kill's with\r M4A1^n",kills[id]);
else if(kills[id]>=50) cct+=format(show[cct],charsmax(show)-cct,"\r1.\w Misiunea 1:\r 50\w/\r50\w Kill's with\r M4A1^n");
if(kills[id]<50) cct+=format(show[cct],charsmax(show)-cct,"\r2.\w Misiunea 2:\y %d\w/\r50\w Kill's with\r AK47^n",kills[id]);
else if(kills[id]>=50) cct+=format(show[cct],charsmax(show)-cct,"\r1.\w Misiunea 2:\r 50\w/\r50\w Kill's with\r AK47^n");

show_menu(id,(1<<0||1<<1||1<<2||1<<3||1<<4||1<<5||1<<6||1<<7||1<<8||1<<9),show,-1);
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


15 Oct 2018 18:37
Profile multumesc ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 22 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 67 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