User
Pass
2FA
 
 

Modificare plugin

 
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 Message386
Pavel. #

[Mentally Stable]



Status: Offline
(since 27-02-2017 11:34)
Joined: 04 Dec 2015
Posts: 38, Topics: 17
Location: Romania

Reputation: 16.3

Post Posted: 20-01-2016, 17:14:15 | Translate post to: ... (Click for more languages)

#include <amxmodx>
#include <fakemeta>

#define PA_LOW 25.0
#define PA_HIGH 50.0

new gMsgScreenShake;
new gMsgScreenFade;

new PCVAR_STATUS;

new const CVAR_STATUS[] = "damage_effect";

public plugin_init()
{
register_plugin("Damage Effect", "1.0", "v3x");
register_event("Damage", "event_Damage", "b", "2>0");
PCVAR_STATUS = register_cvar(CVAR_STATUS, "1");
gMsgScreenShake = get_user_msgid("ScreenShake");
gMsgScreenFade = get_user_msgid("ScreenFade");
}

public event_Damage(id)
{
if(get_pcvar_num(PCVAR_STATUS) <= 0 || !is_user_alive(id) || is_user_bot(id))
return PLUGIN_CONTINUE;

new iWeapID, attacker = get_user_attacker(id, iWeapID);

if(!is_user_connected(attacker))
return PLUGIN_CONTINUE;

if(iWeapID == CSW_M249, CSW_M3, CSW_MP5NAVY, CSW_DEAGLE, CSW_USP, CSW_SG552, CSW_GLOCK18, CSW_P228, CSW_FIVESEVEN, CSW_ELITE, CSW_KNIFE)
{
new Float:fVec[3];
fVec[0] = random_float(PA_LOW , PA_HIGH);
fVec[1] = random_float(PA_LOW , PA_HIGH);
fVec[2] = random_float(PA_LOW , PA_HIGH);
pev(id, pev_punchangle, fVec);

message_begin(MSG_ONE, gMsgScreenShake, {0,0,0} ,id)
write_short( 1<<14 );
write_short( 1<<14 );
write_short( 1<<14 );
message_end();

message_begin(MSG_ONE_UNRELIABLE, gMsgScreenFade, {0,0,0}, id);
write_short( 1<<10 );
write_short( 1<<10 );
write_short( 1<<12 );
write_byte( 225 );
write_byte( 0 );
write_byte( 0 );
write_byte( 125 );
message_end();
}

return PLUGIN_CONTINUE;
}

Sa-mi modificati pluginul acesta sa se faca ecranul ros numai la headshot

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

[Organ de stat]



Status: Offline
(since 27-03-2020 11:23)
Joined: 24 Jun 2012
Posts: 3232, Topics: 219
Location: Pantelimon, Ilfov

Reputation: 478.7
Votes: 125

         
Post Posted: 22-01-2016, 19:14:54 | Translate post to: ... (Click for more languages)

Uite plugin-ul:

Click


Si uite cvars:

cfg_hs_sound 1/0 - Sunet pornit la victima
cfg_hs_fade 1/0 - Ecran rosu
cfg_hs_blood 1/0 - Sangele sare in aer
cfg_hs_msg 1/0 - Mesaj pe centru


Daca vrei sa ai mesajul il setezi pe 1, daca nu vrei il dai pe 0. Mesajul il poti modifica din sursa dupa care il recompilezi si il bagi in plugins .

Daca intampini probleme imi dai PM.



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

  Topic locked


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




 
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 05-08-2025, 18:05:07
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password