[REZOLVAT]Cerere plugin grenade respawn [JUNKY]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Junky444
Membru, skill +1
Membru, skill +1
Posts: 412
Joined: 01 Feb 2014, 17:51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 30 times
Been thanked: 4 times
Contact:

16 Aug 2014, 13:13

Descriere plugin cerut :[/color] Un plugin care ofera echipei T o grenada HE la 30 de secunde , vreau sa i se spawneze mereu grenada la 30 secunde fie ca acesta mai are inca o grenada He , vreau sa ii mai ofere una incontinu , sau daca nu puteti face acest lucru e bine si asa numai grenada sa io dea la 30 secunde.

Alte informatii: Ce conteaza doar sa mearga.

MULTUMESC
Last edited by Junky444 on 17 Aug 2014, 21:34, edited 1 time in total.
Image
Image
Image
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
Cosmin
Fost moderator
Fost moderator
Posts: 9526
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 568 times
Been thanked: 587 times

16 Aug 2014, 16:19

| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

static const
	PLUGIN[] = "Hegrenade",
	VERSION[] = "1.0",
	AUTHOR[] = "C0sm1N";

new he[33] = 30

public plugin_init(){
	register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_putinserver(id) {
	if(!is_user_bot(id))
		set_task(1.0,"dam_grenada",id,_,_,"b")
}
public dam_grenada(id) {
	if(he[id] > 0)
	{
		he[id]--
		set_hudmessage(66, 237, 19, 0.54, 0.13, 0, 6.0, 1.0)
		show_hudmessage(id, "Vei primii o grenada in %i secund%s",he[id],he[id] == 1 ? "a" : "e")
	}
	else
	{
		if(is_user_alive(id) && !is_user_hltv(id))
		{
			give_item(id,"weapon_hegrenade")
			cs_set_user_bpammo(id,CSW_HEGRENADE,1)
		}
		he[id] = 30
	}
}
public client_disconnect(id)	remove_task(id)
User avatar
Junky444
Membru, skill +1
Membru, skill +1
Posts: 412
Joined: 01 Feb 2014, 17:51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 30 times
Been thanked: 4 times
Contact:

16 Aug 2014, 19:41

Am testat pluginul si merge exact cum trebuie , doar cu o singura exceptie.
Poti face pluginul sa mearga doar la echipa T?
Adica sa dea grenade He doar la Teroristi?
Image
Image
Image
User avatar
Nubo
Fost moderator
Fost moderator
Posts: 2771
Joined: 11 Jul 2012, 17:45
Detinator Steam: Da
CS Status: [əˈnɒn.ɪ.məs]
Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
Has thanked: 8 times
Been thanked: 26 times
Contact:

16 Aug 2014, 23:35

Code: Select all

if(is_user_alive(id) && !is_user_hltv(id))
>

Code: Select all

if(is_user_alive(id) && !is_user_hltv(id) && get_user_team(id) == 1)
Cand nu merge acest forum sunt online aici:
  • * Skype: nubo_cs
    * Y!M ID: nubo_cs
User avatar
Truth
Membru, skill +1
Membru, skill +1
Posts: 219
Joined: 26 Jun 2014, 18:50
Detinator Steam: Da
CS Status: I learn ...
SteamID: Private
Fond eXtream: 0
Location: Buzau
Has thanked: 1 time
Been thanked: 9 times
Contact:

17 Aug 2014, 10:35

Nubo wrote:

Code: Select all

if(is_user_alive(id) && !is_user_hltv(id))
>

Code: Select all

if(is_user_alive(id) && !is_user_hltv(id) && get_user_team(id) == 1)
E gresit. Daca pui verificarea acolo. Pluginul va merge pentru ambele echipe doar ca la ct va aparea doar hud-ul si nu va da grenada...
Poftim:
sma | Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

static const
	PLUGIN[] = "Hegrenade",
	VERSION[] = "1.0",
	AUTHOR[] = "C0sm1N";

new he[33] = 30

public plugin_init(){
	register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_putinserver(id) {
	if(!is_user_bot(id) && get_user_team(id) == 1)
		set_task(1.0,"dam_grenada",id,_,_,"b")
}
public dam_grenada(id) {
	if(he[id] > 0)
	{
		he[id]--
		set_hudmessage(66, 237, 19, 0.54, 0.13, 0, 6.0, 1.0)
		show_hudmessage(id, "Vei primii o grenada in %i secund%s",he[id],he[id] == 1 ? "a" : "e")
	}
	else
	{
		if(is_user_alive(id) && !is_user_hltv(id))
		{
			give_item(id,"weapon_hegrenade")
			cs_set_user_bpammo(id,CSW_HEGRENADE,1)
		}
		he[id] = 30
	}
}
public client_disconnect(id)	remove_task(id)
Image

Pluginuri Publicate:

- Furien XP System #1 | #2 | #3 | #4 | #5 | #6
User avatar
HamletEagle
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 751
Joined: 21 Sep 2013, 14:05
Detinator Steam: Da
CS Status: Inactiv cateva zile.
SteamID: privat
Reputatie: Scripter eXtreamCS.com
Fost Moderator ajutator
Has thanked: 20 times
Been thanked: 85 times

17 Aug 2014, 12:19

get_user_team poate sa returneze indexul echipei gresit, deoarece mesajul ScoreInfo se poate sa nu fie trimis. Foloseste cs_get_user_team.
Daca vreti ajutorul meu, nu dati bump la topic, fara intrebari de genu "cat mai dureaza/mai astept mult?".
User avatar
Junky444
Membru, skill +1
Membru, skill +1
Posts: 412
Joined: 01 Feb 2014, 17:51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 30 times
Been thanked: 4 times
Contact:

17 Aug 2014, 20:31

Am folosit toate codurile , am compilat de 10 ori fiecare cod dar mesajul din partea dreapta sus si nici grenadele nu mai sunt oferite nici unei echipe.
Oricum va multumesc foarte mult pentru ca vati implicat la aceasta cerere ca sa ma ajutati :)
Va Multumesc pentru atentie

Daca nu puteti face acest plugin sa functioneze doar la echipa T , stiti vreunul de pluginul ala care interzice folosirea grenadei smoke ?
Adica eu sa o pot cumpara din shop dar cand vreau sa o folosesc sa mi se schimbe pe knife ... ca sa nu pot folosi grenada.
Image
Image
Image
Cosmin
Fost moderator
Fost moderator
Posts: 9526
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 568 times
Been thanked: 587 times

17 Aug 2014, 20:38

| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

static const
	PLUGIN[] = "Hegrenade",
	VERSION[] = "1.0",
	AUTHOR[] = "C0sm1N";

new he[33] = 30

public plugin_init(){
	register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_putinserver(id) {
	if(!is_user_bot(id))
		set_task(1.0,"dam_grenada",id,_,_,"b")
}
public dam_grenada(id) {
	if(get_user_team(id) == 2)
	{
		if(he[id] > 0)
		{
			he[id]--
			set_hudmessage(66, 237, 19, 0.54, 0.13, 0, 6.0, 1.0)
			show_hudmessage(id, "Vei primii o grenada in %i secund%s",he[id],he[id] == 1 ? "a" : "e")
		}
		else
		{
			if(is_user_alive(id) && !is_user_hltv(id))
			{
				give_item(id,"weapon_hegrenade")
				cs_set_user_bpammo(id,CSW_HEGRENADE,1)
			}
			he[id] = 30
		}
	}
}
public client_disconnect(id)	remove_task(id)
vezi daca merge
User avatar
Junky444
Membru, skill +1
Membru, skill +1
Posts: 412
Joined: 01 Feb 2014, 17:51
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 30 times
Been thanked: 4 times
Contact:

17 Aug 2014, 21:05

Merge ... da faza e ca merge la echipa CT nu la T
La echipa CT apar cele 30 sec si ii ofera si granada dar la echipa T nu apar cele 30 sec si nici grenada nu io da.
Vreau sa mearga doar la echipa T nu si la CT

EDIT: Bun am gasit ce trebuia modificat si acum merge :)
| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

static const
	PLUGIN[] = "Hegrenade",
	VERSION[] = "1.0",
	AUTHOR[] = "C0sm1N";

new he[33] = 30

public plugin_init(){
	register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_putinserver(id) {
	if(!is_user_bot(id))
		set_task(1.0,"dam_grenada",id,_,_,"b")
}
public dam_grenada(id) {
	if(get_user_team(id) == 1)
	{
		if(he[id] > 0)
		{
			he[id]--
			set_hudmessage(66, 237, 19, 0.54, 0.13, 0, 6.0, 1.0)
			show_hudmessage(id, "Vei primii o grenada in %i secund%s",he[id],he[id] == 1 ? "a" : "e")
		}
		else
		{
			if(is_user_alive(id) && !is_user_hltv(id))
			{
				give_item(id,"weapon_hegrenade")
				cs_set_user_bpammo(id,CSW_HEGRENADE,1)
			}
			he[id] = 30
		}
	}
}
public client_disconnect(id)	remove_task(id)
Iti multumesc foarte mult frate :D :D>- :troll

MULTUMESC TUTUROR CARE MAU AJUTAT LA ACEASTA CERERE
Image
Image
Image
Cosmin
Fost moderator
Fost moderator
Posts: 9526
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 568 times
Been thanked: 587 times

17 Aug 2014, 22:18

ah nu am fost atent,e bine ca ai rezolvat.
User avatar
HamletEagle
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 751
Joined: 21 Sep 2013, 14:05
Detinator Steam: Da
CS Status: Inactiv cateva zile.
SteamID: privat
Reputatie: Scripter eXtreamCS.com
Fost Moderator ajutator
Has thanked: 20 times
Been thanked: 85 times

18 Aug 2014, 11:19

Daca mai ai probleme il poti incerca si pe acesta: https://forums.alliedmods.net/showthread.php?t=238811
Daca vreti ajutorul meu, nu dati bump la topic, fara intrebari de genu "cat mai dureaza/mai astept mult?".
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests