Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Ciprian
- Fost administrator
- Posts: 5172
- Joined: 10 May 2008, 21: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: 177 times
- Been thanked: 405 times
25 Jul 2010, 15:04
@Seekers, e grenade nu hegrenade :P
Acum ar trebui sa mearga:
- | 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 ( "DeathMsg", "player_die", "ae" );
}
public player_die ( ) {
//Taken from Hunter Digi's Kill Assist Plugin -> http://forums.alliedmods.net/showthread ... t=DeathMsg
new iKiller = read_data ( 1 );
new iHS = read_data ( 3 );
new szWeapon[ 24 ];
read_data ( 4, szWeapon, 23 );
//Taken from Hunter Digi's Kill Assist Plugin -> http://forums.alliedmods.net/showthread ... t=DeathMsg
new normalkill = ( ( ! equali ( szWeapon, "knife" ) ) || ( ! equali ( szWeapon, "grenade" ) ) || ( ! iHS ) ) ? 1 : 0;
if ( normalkill ) {
if ( ! is_user_alive ( iKiller ) )
return PLUGIN_HANDLED;
set_user_health ( iKiller, get_user_health ( iKiller ) + 2 );
}
if ( iHS ) {
if ( ! is_user_alive ( iKiller ) )
return PLUGIN_HANDLED;
set_user_health ( iKiller, get_user_health ( iKiller ) + 5 );
}
switch ( szWeapon[ 0 ] ) {
case 'k': {
if ( ! is_user_alive ( iKiller ) )
return PLUGIN_HANDLED;
set_user_health ( iKiller, 100 );
}
case 'h': {
if ( ! is_user_alive ( iKiller ) )
return PLUGIN_HANDLED;
give_item ( iKiller, "weapon_hegrenade" );
}
}
return PLUGIN_CONTINUE;
}
[/code]
-
Arion
- Scripter eXtreamCS
- Posts: 3317
- Joined: 15 May 2008, 21:19
- Detinator Steam: Da
- SteamID: arion1338
- Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
- Discord: laurentiuandrei
- Has thanked: 402 times
- Been thanked: 413 times
-
Contact:
25 Jul 2010, 15:16
HAHA mersi mult :)))))
- | Afiseaza codul
[code]#include <amxmodx>
#include <fun>
#pragma semicolon 1
public plugin_init() {
register_plugin("Plugin", "0.1", "Ex3cuTioN");
register_event("DeathMsg", "death_mes", "a");
}
public death_mes() {
new atacator = read_data(1);
new hs = read_data(3);
new arma[20];
read_data(4 ,arma,charsmax(arma));
if(hs) {
if(equali(arma,"knife")) {
set_user_health(atacator,100);
client_print(atacator,print_chat,"Ai primit 100 hp");
return PLUGIN_HANDLED;
}
set_user_health(atacator,(get_user_health(atacator) + 5));
client_print(atacator,print_chat,"Ai primit 5 hp");
}
else {
if(equali(arma,"grenade")) {
set_task(1.0,"grenadeshow",atacator);
return PLUGIN_HANDLED;
}
else if(equali(arma,"knife")) {
set_user_health(atacator,100);
client_print(atacator,print_chat,"Ai primit 100 hp");
return PLUGIN_HANDLED;
}
set_user_health(atacator,(get_user_health(atacator) + 2));
client_print(atacator,print_chat,"Ai primit 2 hp");
}
return PLUGIN_HANDLED;
}
public grenadeshow(atacator) {
give_item(atacator,"weapon_hegrenade");
client_print(atacator,print_chat,"Ai primit o grenada HE");
}[/code]
Merge 100% :)
Tnx jumyk pentru teste :D
EDIT : Cipri vezi ca e
Code: Select all
give_item(index,"weapon_hegrenade");
Last edited by
Arion on 25 Jul 2010, 15:52, edited 1 time in total.
-
Ciprian
- Fost administrator
- Posts: 5172
- Joined: 10 May 2008, 21: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: 177 times
- Been thanked: 405 times
25 Jul 2010, 15:34
Ex3cuTioN wrote:HAHA mersi mult :)))))
- | Afiseaza codul
[code]#include <amxmodx>
#include <fun>
#pragma semicolon 1
public plugin_init() {
register_plugin("Plugin", "0.1", "Ex3cuTioN");
register_event("DeathMsg", "death_mes", "a");
}
public death_mes() {
new atacator = read_data(1);
new hs = read_data(3);
new arma[20];
read_data(4 ,arma,charsmax(arma));
if(hs) {
if(equali(arma,"knife")) {
set_user_health(atacator,100);
client_print(atacator,print_chat,"Ai primit 100 hp");
return PLUGIN_HANDLED;
}
set_user_health(atacator,(get_user_health(atacator) + 5));
client_print(atacator,print_chat,"Ai primit 5 hp");
}
else {
if(equali(arma,"grenade")) {
set_task(1.0,"grenadeshow",atacator);
return PLUGIN_HANDLED;
}
else if(equali(arma,"knife")) {
set_user_health(atacator,100);
client_print(atacator,print_chat,"Ai primit 100 hp");
return PLUGIN_HANDLED;
}
set_user_health(atacator,(get_user_health(atacator) + 2));
client_print(atacator,print_chat,"Ai primit 2 hp");
}
return PLUGIN_HANDLED;
}
public grenadeshow(atacator) {
give_item(atacator,"weapon_hegrenade");
client_print(atacator,print_chat,"Ai primit o grenada HE");
}[/code]
Merge 100% :)
Tnx jumyk pentru teste :D
EDIT : Cipri vezi ca e
Code: Select all
give_item(index,"weapon_hegrenade");
Asa e. Pe al meu nu l-ai testat? :))
-
Arion
- Scripter eXtreamCS
- Posts: 3317
- Joined: 15 May 2008, 21:19
- Detinator Steam: Da
- SteamID: arion1338
- Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
- Discord: laurentiuandrei
- Has thanked: 402 times
- Been thanked: 413 times
-
Contact:
25 Jul 2010, 15:44
Nu l-am testat pe server, dar e logic ca e ok din sursa :-?
Revin cu edit, acum testez si pe al tau
EDIT :
Pai cand faci un frag normal iti da 2 HP
Daca dai HS iti da 5hp + 2, ceea ce nu e bine...
Daca omori cu HE nu iti da alt he
Daca omori cu lama nu iti da 100 hp :D
Last edited by
Ciprian on 25 Jul 2010, 16:21, edited 1 time in total.
Reason: ok :|
-
Reptile
- Membru, skill +1
- Posts: 245
- Joined: 12 Nov 2008, 14:11
- Detinator Steam: Nu
- Reputatie: Fost manager
- Been thanked: 23 times
25 Jul 2010, 17:01
Ex3, ai aflat si tu ce face pragma semicolon ?
-
Arion
- Scripter eXtreamCS
- Posts: 3317
- Joined: 15 May 2008, 21:19
- Detinator Steam: Da
- SteamID: arion1338
- Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
- Discord: laurentiuandrei
- Has thanked: 402 times
- Been thanked: 413 times
-
Contact:
25 Jul 2010, 17:02
Reptile wrote:Ex3, ai aflat si tu ce face pragma semicolon ?
Da mi-ai zis tu si apoi am vazut in jumpstats si acum il folosesc si eu :)
-
Reptile
- Membru, skill +1
- Posts: 245
- Joined: 12 Nov 2008, 14:11
- Detinator Steam: Nu
- Reputatie: Fost manager
- Been thanked: 23 times
25 Jul 2010, 17:03
Ex3cuTioN wrote:Reptile wrote:Ex3, ai aflat si tu ce face pragma semicolon ?
Da mi-ai zis tu si apoi am vazut in jumpstats si acum il folosesc si eu :)
Felicitari atunci.
-
HsT | Manu
- Membru, skill 0
- Posts: 34
- Joined: 30 May 2009, 08:56
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com!
- Detinator server CS: MAGIC.GAMECORE.RO
- Location: Timisoara
-
Contact:
01 Feb 2011, 09:21
L 02/01/2011 - 09:14:40: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/01/2011 - 09:14:40: [AMXX] Run time error 10 (plugin "plugin.amxx") (native "set_user_health") - debug not enabled!
L 02/01/2011 - 09:14:40: [FUN] Player out of range (0)
Mie imi da urmatoarea eroare
-
ucigasu
- Membru, skill +1
- Posts: 156
- Joined: 05 Feb 2009, 14:51
- Detinator Steam: Da
- CS Status: Plictisit !
- Detinator server CS: CS.HadCore.RO
- SteamID: privat.
- Location: eXtreamCS.Com
- Has thanked: 10 times
- Been thanked: 2 times
-
Contact:
12 Jun 2011, 00:54
Cine are timp si se pricepe la Scripting sa rezolve BUG-ul eroarea...
- bonus_kill | Afiseaza codul
L 06/04/2011 - 17:17:19: [AMXX] Displaying debug trace (plugin "bonus_kill.amxx")
L 06/04/2011 - 17:17:19: [AMXX] Run time error 10: native error (native "set_user_health")
L 06/04/2011 - 17:17:19: [AMXX] [0] bonus_kill.sma::death_mes (line 40)
Connect Bad.ZaPTo.OrG
Mod: Normal | Status: Online | Owner: ucigasu
-
ucigasu
- Membru, skill +1
- Posts: 156
- Joined: 05 Feb 2009, 14:51
- Detinator Steam: Da
- CS Status: Plictisit !
- Detinator server CS: CS.HadCore.RO
- SteamID: privat.
- Location: eXtreamCS.Com
- Has thanked: 10 times
- Been thanked: 2 times
-
Contact:
13 Jun 2011, 17:55
UP :D>-
Connect Bad.ZaPTo.OrG
Mod: Normal | Status: Online | Owner: ucigasu
-
ucigasu
- Membru, skill +1
- Posts: 156
- Joined: 05 Feb 2009, 14:51
- Detinator Steam: Da
- CS Status: Plictisit !
- Detinator server CS: CS.HadCore.RO
- SteamID: privat.
- Location: eXtreamCS.Com
- Has thanked: 10 times
- Been thanked: 2 times
-
Contact:
19 Jun 2011, 17:28
UP :">
Connect Bad.ZaPTo.OrG
Mod: Normal | Status: Online | Owner: ucigasu
-
ucigasu
- Membru, skill +1
- Posts: 156
- Joined: 05 Feb 2009, 14:51
- Detinator Steam: Da
- CS Status: Plictisit !
- Detinator server CS: CS.HadCore.RO
- SteamID: privat.
- Location: eXtreamCS.Com
- Has thanked: 10 times
- Been thanked: 2 times
-
Contact:
20 Jun 2011, 12:46
chiar nimeni nu ma ajuta si pe mine cu bug-ul asta?!
Connect Bad.ZaPTo.OrG
Mod: Normal | Status: Online | Owner: ucigasu
-
Users browsing this forum: No registered users and 27 guests