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 Message529
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: 16-12-2015, 16:08:19 | Translate post to: ... (Click for more languages)

As dori la pluginul acesta sa-mi arate si cat HP ai primit. Daca dai hs sa-ti apara ca ai primit +100 hp, iar daca il omori + 10 hp

Multumesc


#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
register_plugin("Cerere 10HP", "1.0", "EDUTz");
RegisterHam(Ham_Killed, "player", "Ham_Killed_player_Post", 1);
register_event("DeathMsg", "eDeathMsg_HeadShot", "a", "1>0", "3=1")
}

public Ham_Killed_player_Post(iPlrId, iIdattacker, iShouldGib)
{
if(is_user_alive(iIdattacker) && is_user_connected(iIdattacker))
{
set_user_health(iIdattacker, get_user_health(iIdattacker) + 10)
if(get_user_health(iIdattacker) > 100)
set_user_health(iIdattacker, 100);
}
return HAM_IGNORED;
}


public eDeathMsg_HeadShot()
{
new iKiller = read_data(1)

if(iKiller > get_maxplayers())
return

new iVictim = read_data(2)
if(iKiller == iVictim)
return
if(is_user_alive(iKiller) && is_user_connected(iKiller))
{
set_user_health(iKiller, get_user_health(iKiller) + 90)
if(get_user_health(iKiller) > 100)
set_user_health(iKiller, 100);
}
}

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: 16-12-2015, 19:42:52 | Translate post to: ... (Click for more languages)

Pavel. # wrote:
As dori la pluginul acesta sa-mi arate si cat HP ai primit. Daca dai hs sa-ti apara ca ai primit +100 hp, iar daca il omori + 10 hp

Multumesc


Quote:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
register_plugin("Cerere 10HP", "1.0", "EDUTz");
RegisterHam(Ham_Killed, "player", "Ham_Killed_player_Post", 1);
register_event("DeathMsg", "eDeathMsg_HeadShot", "a", "1>0", "3=1")
}

public Ham_Killed_player_Post(iPlrId, iIdattacker, iShouldGib)
{
if(is_user_alive(iIdattacker) && is_user_connected(iIdattacker))
{
set_user_health(iIdattacker, get_user_health(iIdattacker) + 10)
if(get_user_health(iIdattacker) > 100)
set_user_health(iIdattacker, 100);
client_print(iIdattacker, print_chat, "Ai primit 10 HP !")
}
return HAM_IGNORED;
}


public eDeathMsg_HeadShot()
{
new iKiller = read_data(1)

if(iKiller > get_maxplayers())
return

new iVictim = read_data(2)
if(iKiller == iVictim)
return
if(is_user_alive(iKiller) && is_user_connected(iKiller))
{
set_user_health(iKiller, get_user_health(iKiller) + 90)
if(get_user_health(iKiller) > 100)
set_user_health(iKiller, 100);
client_print(iKiller, print_chat, "Ai primit 100 HP !")
}
}




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
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: 16-12-2015, 20:57:31 | Translate post to: ... (Click for more languages)

Nu poti sa mi-l faci sa-mi apara asa? http://s9.postimg.org/9gpc5ud97/Untitled.jpg?noCache=1450292211
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: 16-12-2015, 21:38:37 | Translate post to: ... (Click for more languages)

Pavel. # wrote:
Nu poti sa mi-l faci sa-mi apara asa? http://s9.postimg.org/9gpc5ud97/Untitled.jpg?noCache=1450292211


Ia uita-te la poza aia, tu ce vezi ?




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
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: 17-12-2015, 13:43:13 | Translate post to: ... (Click for more languages)

EDUTz wrote:
Pavel. # wrote:
Nu poti sa mi-l faci sa-mi apara asa? http://s9.postimg.org/9gpc5ud97/Untitled.jpg?noCache=1450292211


Ia uita-te la poza aia, tu ce vezi ?


http://imgur.com/UaoENlb Dar in loc de healed Ai primit

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: 17-12-2015, 15:28:41 | Translate post to: ... (Click for more languages)

Se poate, dar orice fel de mesaje de genul asta duc la crashuri dese ale serverului. Nu recomand afisarea lor asa. Daca totusi vrei asa, lasa un mesaj aici.



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
GoguSM

[.: ZMGO.FREAKZ.RO :.]



Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516, Topics: 71
Location: Brasov

Reputation: 1144
Votes: 95

Post Posted: 17-12-2015, 15:42:14 | Translate post to: ... (Click for more languages)

Ia vezi asa.
Spoiler:

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




 
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, 12:48:07
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password