User
Pass
2FA
 
 

Cerere 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 Message405
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: 14-12-2015, 18:44:25 | Translate post to: ... (Click for more languages)

Cand faci un kill sa-ti dea 10 hp,iar cand dai hs 100 hp
Dar vreau ca viata sa nu creasca mai mult de 100 hp!

Multumesc

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: 14-12-2015, 19:30:44 | Translate post to: ... (Click for more languages)

Pavel. # wrote:
Cand faci un kill sa-ti dea 10 hp,iar cand dai hs 100 hp
Dar vreau ca viata sa nu creasca mai mult de 100 hp!

Multumesc


Ti-am facut eu unul in graba, nu l-am verificat daca merge asa cum trebuie, dar ar trebui sa fie ok. TE ROG lasa un mesaj aici daca merge sau nu DUPA ce-l testezi.

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);
}
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);
}
}




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
Adryyy

[HLDS EXPLOITER]



Status: Offline
(since 16-09-2024 14:37)
Joined: 09 Apr 2012
Posts: 128, Topics: 6
Location: Romania

Reputation: 117.3
Votes: 10

       
Post Posted: 15-12-2015, 11:33:16 | Translate post to: ... (Click for more languages)

^Era mai usor sa le faci pe aman2 in 'client_death'

( -_・) ︻デ═一 ▸❀ヅ❤♫
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
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: 15-12-2015, 12:21:27 | Translate post to: ... (Click for more languages)

Era, dar am vrut sa fie separat sa vada despre ce e vorba si sa modifice sau sa stearga ceva daca vrea el....



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

EDUTz wrote:
Pavel. # wrote:
Cand faci un kill sa-ti dea 10 hp,iar cand dai hs 100 hp
Dar vreau ca viata sa nu creasca mai mult de 100 hp!

Multumesc


Ti-am facut eu unul in graba, nu l-am verificat daca merge asa cum trebuie, dar ar trebui sa fie ok. TE ROG lasa un mesaj aici daca merge sau nu DUPA ce-l testezi.

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);
}
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);
}
}


Merge, multumesc frumos

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 destroi112, 15 December 2015 13:05



 
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 06-08-2025, 03:07:14
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password