It is currently 15 Nov 2018 15:35



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  [ 5 posts ] 
 [Cerere Plugin] Kill benefici 
Author Message
Membru, skill 0
Membru, skill 0
User avatar

Joined: 25 Jun 2017 00:57
Posts: 47
Detinator Steam: Nu
Fond eXtream: 0
După un anumit număr de ucideri să primeşti nişte benefici , exemplu :

  • 1. După 10 ucideri - +10 hp (110 hp la spawn)
  • 2. Dupa 20 ucideri - +20 hp & 1 grenada flash (120 hp & grenada flash la spawn)
  • 3. Dupa 30 ucideri - +30 hp & speed (130 hp & speed la spawn)
etc...


Aceste benefici să fie valabile până la schimbarea hărţi !
Doresc să scrie undeva pe ecran nick-ul jucătorului , numărul de kill-uri şi la ce grad este ; exemplu :

JucatorEXTREAM [45 UCIDERI] [ GRAD 4 ]


Doresc acest plugin pentru modul respawn.


05 Nov 2018 17:00
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1386
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
o să ai nevoide de - https://forums.alliedmods.net/showthread.php?t=76453

| Afiseaza codul
#include <amxmodx>
//#include <amxmisc>
#include <fun>
#include <fvault>

new const g_VAULTNAME[] = "Kills";

#define RANK_10 "GRAD1"
#define RANK_20 "GRAD2"
#define RANK_30 "GRAD3"

new kills[33]

public client_putinserver(id) if(is_user_connected(id)&&(!is_user_bot(id)||!is_user_hltv(id))) LoadData(id);
public client_disconnect(id) if((!is_user_bot(id)||!is_user_hltv(id))) SaveData(id)

public client_PreThink(id)
{
if(is_user_alive(id)) if(kills[id]>=30) set_user_maxspeed(id,265.0)

if(is_user_connected(id)&&(!is_user_bot(id)||!is_user_hltv(id)))
{
new name[32]
get_user_name(id,name,charsmax(name))

if(kills[id]>=10)
{
set_hudmessage(255,127,0,0.55,0.4,0,6.0,12.0)
show_hudmessage(id,"%s [%d UCIDERI] [ %d ]",name,kills[id],RANK_10)
}
else if(kills[id]>=20)
{
set_hudmessage(255,127,0,0.55,0.4,0,6.0,12.0)
show_hudmessage(id,"%s [%d UCIDERI] [ %d ]",name,kills[id],RANK_20)
}
else if(kills[id]>=30)
{
set_hudmessage(255,127,0,0.55,0.4,0,6.0,12.0)
show_hudmessage(id,"%s [%d UCIDERI] [ %d ]",name,kills[id],RANK_30)
}
}
}

public client_spawn(id)
{
if(is_user_alive(id))
{
if(kills[id]>=10) set_user_health(id,110)
else if(kills[id]>=20)
{
set_user_health(id,120)
give_item(id,"weapon_flashbang")
}
else if(kills[id]>=30)
{
set_user_health(id,130)
set_user_maxspeed(id,265.0)
}
}
}

public client_death(killer,victim,wpnindex,hitplace,TK) if(is_user_connected(killer)&&is_user_connected(victim)&&killer!=victim) kills[killer]++



public SaveData(id){
new authid[32],mapname[32]
get_user_name(id, authid, 31)
get_mapname(mapname, charsmax(mapname))

new data[65]
formatex( data, sizeof( data ) - 1, "%d %s", kills[id], mapname )
fvault_set_data(g_VAULTNAME, authid, data )
}

public LoadData(id){

new authid[32],mapname[32]
get_user_name(id,authid,31)
get_mapname(mapname, charsmax(mapname))

new data[ 65 ], szKills[ 32 ], szMap[ 32 ];
if( fvault_get_data(g_VAULTNAME, authid, data, sizeof( data ) - 1 ) )
{
parse/*strbreak*/( data, szKills, sizeof( szKills ) - 1, szMap, sizeof( szMap ) - 1 );

get_mapname(szMap, charsmax(szMap))

if(equali(mapname,szMap)) kills[id] = str_to_num( szKills );
else kills[id]=0
}
}

_________________
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 .


05 Nov 2018 18:19
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 25 Jun 2017 00:57
Posts: 47
Detinator Steam: Nu
Fond eXtream: 0
Nu merge :weary:


09 Nov 2018 17:06
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 24 Aug 2011 12:24
Posts: 1386
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Fond eXtream: 0
ce nu merge -_-

_________________
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 Nov 2018 18:07
Profile multumesc ICQ YIM WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 25 Jun 2017 00:57
Posts: 47
Detinator Steam: Nu
Fond eXtream: 0
Pluginul oferit de tine adică îl pun şi am facut kiluri dar nu primeşte nimic.


12 Nov 2018 19:36
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

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