User
Pass
2FA
 
 

[rezolvat]Problema

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message1026
Yla.

[Mentally Stable]



Status: Offline
(since 06-02-2015 18:32)
Joined: 13 Nov 2014
Posts: 21, Topics: 8
Location: Romania

Reputation: 64.7
Votes: 2

Post Posted: 24-11-2014, 21:11:02 | Translate post to: ... (Click for more languages)

»Nume*: Yla
»Descriere problema*: Salut vreau si eu sa fac sa fie doar la CT caciuli . As putea sa fac asta sa nu fie la T caciuli doar la CT.
»Poze:

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <fakemeta_util>

new g_Enable;
new g_bwEnt[33];


new const model_nade_world[] = "models/snowballs/w_snowball.mdl"
new const model_nade_view[] = "models/snowballs/v_snowball.mdl"
new const model_trail[] = "sprites/laserbeam.spr"
new on
new rendering
new trail

//For snowball trail
new g_trail
public plugin_init() {
register_plugin( "Christmass", "1.0", "anakin_cstrike" );
register_cvar("santa_hat", "1.1", FCVAR_SERVER);
g_Enable = register_cvar("amx_santahat", "1");

RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);

on = register_cvar("snowballs_on","1")
if(get_pcvar_num(on))
{
rendering = register_cvar("snowballs_rendering","1")
trail = register_cvar("snowballs_trail","1")

register_forward(FM_SetModel,"forward_model")

register_event("CurWeapon","func_modelchange_hook","be","1=1","2=4","2=9","2=25")
}
}

public plugin_precache()
{
engfunc(EngFunc_PrecacheModel,model_nade_world)
engfunc(EngFunc_PrecacheModel,model_nade_view)
engfunc(EngFunc_PrecacheModel,model_nade_view)

engfunc ( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "env_snow" ) );

g_trail = engfunc(EngFunc_PrecacheModel,model_trail)

precache_model("models/santa_hat.mdl");
}

public fwHamPlayerSpawnPost( const player ) { // Cleanup by arkshine
if ( get_pcvar_num( g_Enable ) && is_user_alive( player ) && !pev_valid ( g_bwEnt[ player ] ) ) {
g_bwEnt[ player ] = engfunc ( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
set_pev( g_bwEnt[ player ], pev_movetype, MOVETYPE_FOLLOW );
set_pev( g_bwEnt[ player ], pev_aiment, player );
engfunc( EngFunc_SetModel, g_bwEnt[ player ], "models/santa_hat.mdl" );
}
}

public func_modelchange_hook(id)
set_pev(id, pev_viewmodel2,model_nade_view)

public forward_model(entity,const model[])
{
if(!pev_valid(entity))
return FMRES_IGNORED

if ( model[ 0 ] == 'm' && model[ 7 ] == 'w' && model[ 8 ] == '_' )
{
switch ( model[ 9 ] )
{
case 'f' :
{
engfunc ( EngFunc_SetModel, entity, model_nade_world )
if(get_pcvar_num(trail))
{
fm_set_trail(entity,255,255,255,255)
}
if(get_pcvar_num(rendering))
{
fm_set_rendering ( entity, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 255 )
}

}
case 'h' :
{
engfunc ( EngFunc_SetModel, entity, model_nade_world )
if(get_pcvar_num(trail))
{
fm_set_trail(entity,255,0,0,255)
}
if(get_pcvar_num(rendering))
{
fm_set_rendering ( entity, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 255 )
}
}
case 's' :
{
engfunc ( EngFunc_SetModel, entity, model_nade_world )
if(get_pcvar_num(trail))
{
fm_set_trail(entity,0,255,0,255)
}
if(get_pcvar_num(rendering))
{
fm_set_rendering ( entity, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 255 )
}
}
}
return FMRES_SUPERCEDE
}

return FMRES_IGNORED
}
stock fm_set_trail(id,r,g,b,bright)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW)
write_short(id)
write_short(g_trail)
write_byte(25)
write_byte(5)
write_byte(r)
write_byte(g)
write_byte(b)
write_byte(bright)
message_end()
}

0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 24-11-2014, 21:27:55 | Translate post to: ... (Click for more languages)

Code:
if ( get_pcvar_num( g_Enable ) && is_user_alive( player ) && !pev_valid ( g_bwEnt[ player ] ) ) {


linia de mai sus o schimbi (replace) cu

Code:
if ( get_pcvar_num( g_Enable ) && is_user_alive( player ) && !pev_valid ( g_bwEnt[ player ] ) && get_user_team(player) == 2 ) {
 




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Yla.

[Mentally Stable]



Status: Offline
(since 06-02-2015 18:32)
Joined: 13 Nov 2014
Posts: 21, Topics: 8
Location: Romania

Reputation: 64.7
Votes: 2

Post Posted: 24-11-2014, 21:50:53 | Translate post to: ... (Click for more languages)

dispare caciula , dar daca sunt ct si nu ma omoara , ma muta la T si inca imi ramane caciula , nu se poate sa fac sa dispara automat cand esti T ? sau daca esti furien sa fac sa dispara si caciula cand stai pe loc.
0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 24-11-2014, 22:44:13 | Translate post to: ... (Click for more languages)

se poate dar e mai complicat decat pare, n-ai decat sa cauti pe allied rezolvari daca te pricepi ... pt userii premium de aici poate ma interesam, dar tu nu prezinti nici un interes in comunitate si nu se merita timpul pierdut.
succes !




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

1 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Yla.

[Mentally Stable]



Status: Offline
(since 06-02-2015 18:32)
Joined: 13 Nov 2014
Posts: 21, Topics: 8
Location: Romania

Reputation: 64.7
Votes: 2

Post Posted: 25-11-2014, 16:11:10 | Translate post to: ... (Click for more languages)

puteti da tc
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by EDUTz, 25 November 2014 14:43



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 25-07-2025, 04:30:34
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password