salut, am si eu pluginul gloves (cel care iti da gredana la 10 sec si iti si apare mesaj) dar are o problema :-ss
cand intru pe server nu imi da automat grenada, doar dupa ce iau o grenada de la harta.. ce pot face?
plugin gloves.amxx [Rezolvat]
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru eXtream
- Posts: 2127
- Joined: 16 Jan 2013, 12:55
- Detinator Steam: Da
- CS Status: Utilizator Serios
- SteamID: Utilizator Serios
- Reputatie: Restrictie moderator
Nume anterior: RzV24
Utilizator neserios (tepar) - Has thanked: 60 times
- Been thanked: 250 times
emy [;x] wrote:ce pot face?
Sa postezi sma
- tictac
- Membru eXtream
- Posts: 4015
- Joined: 24 Feb 2012, 18:27
- Detinator Steam: Da
- Reputatie: 1 warn scos (-2 luni club)
Membru Club eXtreamCS (3 luni)
Ban 3 luni (achitat) - Location: Bihor, Oradea
- Has thanked: 73 times
- Been thanked: 570 times
Vezi daca e bun.
Code: Select all
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#define VERSION "0.0.2"
#define MAX_PLAYERS 32
#define FREQUENCY 10.0
public plugin_init()
{
new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, "nade_giver")
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 1.0)
register_think("nade_giver", "grenade")
}
public grenade(iEnt)
{
static id
if( ++id > MAX_PLAYERS )
{
id = 1
}
if( is_user_alive(id) )
{ give_item(id, "weapon_hegrenade")
{
stock const messages [ ] [ ] =
{
"Ai primit o grenada"
}
}
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + FREQUENCY/MAX_PLAYERS)
}
- emy [;x]
- Membru, skill +1
- Posts: 237
- Joined: 29 Sep 2012, 16:23
- Detinator Steam: Da
- CS Status: .d(*_*)b.
- Detinator server CS: Da
- SteamID: cs_emy
- Has thanked: 11 times
- Been thanked: 12 times
tictac wrote:Vezi daca e bun.
Code: Select all
#include <amxmodx> #include <cstrike> #include <engine> #include <fun> #define VERSION "0.0.2" #define MAX_PLAYERS 32 #define FREQUENCY 10.0 public plugin_init() { new iEnt = create_entity("info_target") entity_set_string(iEnt, EV_SZ_classname, "nade_giver") entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 1.0) register_think("nade_giver", "grenade") } public grenade(iEnt) { static id if( ++id > MAX_PLAYERS ) { id = 1 } if( is_user_alive(id) ) { give_item(id, "weapon_hegrenade") { stock const messages [ ] [ ] = { "Ai primit o grenada" } } entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + FREQUENCY/MAX_PLAYERS) }
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/tmp/textyEV8Is.sma(18) : warning 217: loose indentation
/tmp/textyEV8Is.sma(30) : warning 217: loose indentation
/tmp/textyEV8Is.sma(32) : warning 217: loose indentation
/tmp/textyEV8Is.sma(33) : error 029: invalid expression, assumed zero
/tmp/textyEV8Is.sma(33) : warning 215: expression has no effect
/tmp/textyEV8Is.sma(33) : error 001: expected token: ";", but found "const"
/tmp/textyEV8Is.sma(33) : error 001: expected token: "=", but found "["
/tmp/textyEV8Is.sma(33) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.
SMA nu are
- FireFox
- Membru, skill +3
- Posts: 1207
- Joined: 23 Jul 2009, 18:03
- Detinator Steam: Nu
- Detinator server CS: Surf2.MnX.Ro
- Reputatie: Membru Club eXtreamCS: 2 luni
Nume anterior: CaTaL!N
Fost Moderator ajutator - Has thanked: 67 times
- Been thanked: 104 times
- REGULI GENERALE : Afișează regulile forumului
- Model postare servere :Afiseaza modelul
- emy [;x]
- Membru, skill +1
- Posts: 237
- Joined: 29 Sep 2012, 16:23
- Detinator Steam: Da
- CS Status: .d(*_*)b.
- Detinator server CS: Da
- SteamID: cs_emy
- Has thanked: 11 times
- Been thanked: 12 times
Pluginul oferit de tine este bun, insa nu apare cate secunde mai sunt pana la urmatoarea grenada si nici nu ramana urma rosie in spateFireFox wrote:Click aici
- L.Messi
- Membru, skill 0
- Posts: 80
- Joined: 05 Mar 2012, 21:28
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: Romania.CS16.Ro
- SteamID: viperateracs
- Location: Cluj
- Has thanked: 6 times
- Been thanked: 1 time
Ca sa dea grenada din start intri in addons.amxmodx/configs deschizi csdm.cfg undeva mai jos ai asa
Adaugi un g dupa autoitems = ah
Code: Select all
;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah
Code: Select all
;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ahg
- adryady83
- Membru, skill 0
- Posts: 47
- Joined: 10 Jun 2013, 20:29
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: reddevil.rangfort.ro
- Has thanked: 1 time
- Contact:
Se poate sa imi dati si mie sma? Vreau sa modific culoarea care arata timpul pana da urmatoarea grenada!
- L.Messi
- Membru, skill 0
- Posts: 80
- Joined: 05 Mar 2012, 21:28
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: Romania.CS16.Ro
- SteamID: viperateracs
- Location: Cluj
- Has thanked: 6 times
- Been thanked: 1 time
Sma la glove nu a fost facut public eventual il gasesti in pluginu de wareft