cerere plugin[rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

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
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

30 Aug 2010, 13:20

salut vreau si eu un plugin care sa dea smoke la ct la inceput de runda!
Nick: MiSteR D
Image
User avatar
FyNNN
Membru, skill +3
Membru, skill +3
Posts: 1421
Joined: 09 May 2010, 13:43
Detinator Steam: Da
CS Status: Shhht guritza !
Detinator server CS: Nu
SteamID: mircea_fynn
Reputatie: Membru Club eXtreamCS (o luna)
Ban 3 luni!
Location: Arad
Has thanked: 123 times
Been thanked: 164 times
Contact:

30 Aug 2010, 14:51

Code: Select all

#include <amxmodx>
#include <cstrike>
#include <fun>

public plugin_init() {
	register_plugin( "Roundstart Smokegrenade", "1.0", "KronoS")
	register_event("ResetHUD","event_round_start","be")
}

public event_round_start(id) {
	if (!is_user_alive(id)) {
	return PLUGIN_HANDLED
	}

	if( cs_get_user_team(id) == CS_TEAM_CT ) {
	give_item(id, "weapon_smokegrenade")
	}
	else if( cs_get_user_team(id) == CS_TEAM_T ) {
	give_item(id, "weapon_hegrenade")
	}
	return PLUGIN_CONTINUE
}
incearca!
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 20:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 176 times
Been thanked: 401 times

30 Aug 2010, 15:32

FyNNN wrote:

Code: Select all

#include <amxmodx>
#include <cstrike>
#include <fun>

public plugin_init() {
	register_plugin( "Roundstart Smokegrenade", "1.0", "KronoS")
	register_event("ResetHUD","event_round_start","be")
}

public event_round_start(id) {
	if (!is_user_alive(id)) {
	return PLUGIN_HANDLED
	}

	if( cs_get_user_team(id) == CS_TEAM_CT ) {
	give_item(id, "weapon_smokegrenade")
	}
	else if( cs_get_user_team(id) == CS_TEAM_T ) {
	give_item(id, "weapon_hegrenade")
	}
	return PLUGIN_CONTINUE
}
incearca!
Total gresit.
| Afiseaza codul
[code=php]/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < fun >

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Ciprian"


public plugin_init ( ) {
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    
    register_event ( "ResetHUD", "event_new_round", "be" );
}

public event_new_round ( ) {
    new players[ 32 ], num;
    get_players ( players, num );
    
    for ( new i = 1; i <= num; i++ ) {
        new id = players[ i ];
        
        if ( is_user_alive ( id ) && get_user_team ( id ) == 2)
            give_item ( id, "weapon_smokegrenade" );
    }
    
    return PLUGIN_CONTINUE;
} [/code]
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

30 Aug 2010, 16:38

ms ciprian >:D<
Nick: MiSteR D
Image
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

30 Aug 2010, 16:50

nu merge ciprian :| scuze pentru dublu post P.S MULTUMESC FYN al tau functioneaza :P
Nick: MiSteR D
Image
User avatar
Arion
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3316
Joined: 15 May 2008, 20:19
Detinator Steam: Da
SteamID: arion1338
Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
Location: Copenhagen
Has thanked: 400 times
Been thanked: 412 times
Contact:

30 Aug 2010, 19:43

b[L]u wrote:nu merge ciprian :| scuze pentru dublu post P.S MULTUMESC FYN al tau functioneaza :P
Ce aveti ma ? cum sa mearga al lui fynn ? =))

Al lui fynn da la CT smoke si la T HE
Join the biggest end-game club in Trove
Image
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

30 Aug 2010, 21:24

exe daca te uitai atent la cererea mea ai fi observat ca am cerut sa dea smoke la ct la inceput de runda ..fyn mi-a dat ce imi trebuia doar ca trebuia sa scot partea cu he la t ..na fost mare greutate :P

#include <amxmodx>
#include <cstrike>
#include <fun>

public plugin_init() {
register_plugin( "Roundstart Smokegrenade", "1.0", "KronoS")
register_event("ResetHUD","event_round_start","be")
}

public event_round_start(id) {
if (!is_user_alive(id)) {
return PLUGIN_HANDLED
}

if( cs_get_user_team(id) == CS_TEAM_CT ) {
give_item(id, "weapon_smokegrenade")
}
return PLUGIN_CONTINUE
}
Nick: MiSteR D
Image
User avatar
FyNNN
Membru, skill +3
Membru, skill +3
Posts: 1421
Joined: 09 May 2010, 13:43
Detinator Steam: Da
CS Status: Shhht guritza !
Detinator server CS: Nu
SteamID: mircea_fynn
Reputatie: Membru Club eXtreamCS (o luna)
Ban 3 luni!
Location: Arad
Has thanked: 123 times
Been thanked: 164 times
Contact:

30 Aug 2010, 23:12

Stiu ca da si HE al lui KronoS, postat de mine, dar imi era lene sa-l scot.. :P
Si stiu ca b[L]u stie sa-l scoata, deci :P

@ Cu placere :)
@ Ciprian ziceai de cel postat de mine ca nu merge? ;-s
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 20:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 176 times
Been thanked: 401 times

30 Aug 2010, 23:29

FyNNN wrote:Stiu ca da si HE al lui KronoS, postat de mine, dar imi era lene sa-l scot.. :P
Si stiu ca b[L]u stie sa-l scoata, deci :P

@ Cu placere :)
@ Ciprian ziceai de cel postat de mine ca nu merge? ;-s
Mai gresesc si eu ... :-j
Nu o sa caut scuze acuma, vazusem "event_round_start", ceea ce e gresit.
ResetHUD se executa defapt cand un jucator primeste spawn.
Post Reply

Return to “Cereri”

  • Information