hlmod.hu
https://hlmod.hu/

[ZP]Extra Itemmek Fordítási help.
https://hlmod.hu/viewtopic.php?f=31&t=17144
Oldal: 1 / 1

Szerző:  nyalka17 [ 2014.08.26. 01:23 ]
Hozzászólás témája:  [ZP]Extra Itemmek Fordítási help.

Sziasztok kicsit össze gyüjtöttem az angol pluginokat vagyi használom is őket valaki le forditaná nekem ezeket ? :)

meg köszöném előre is !.
Extra Gyorsasság.
Idézet:
public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid_speed )
{
if (!get_pcvar_num(g_sb_all_player_buy) && (!access(player, ADMIN_LEVEL_B)))
return PLUGIN_HANDLED

g_hasSpeedBoost[player] = true

fm_set_rendering(player, kRenderFxGlowShell, get_pcvar_num(g_sb_red), get_pcvar_num(g_sb_green), get_pcvar_num(g_sb_blue), kRenderNormal, 255)
set_pev(player, pev_maxspeed, get_pcvar_float(g_sb_maxspeed))
set_task(get_pcvar_float(g_sb_time), "boost_over", player)
client_print(player, print_chat, "[ZP] You've purchased Speed Booster")
}
return PLUGIN_CONTINUE
}

public buy_sboost(id)
{
if (!get_pcvar_num(g_sb_toggle))
return PLUGIN_HANDLED

if (!get_pcvar_num(g_sb_all_player_buy) && (!access(id, ADMIN_LEVEL_B)))
return PLUGIN_HANDLED

new money = zp_get_user_ammo_packs(id)
new cost = get_pcvar_num(g_sb_cost)

if (!is_user_alive(id))
{
client_print(id, print_chat, "[ZP] Dead people can't purchase Speed Boost")
return PLUGIN_HANDLED
}

if (g_hasSpeedBoost[id])
{
client_print(id, print_chat, "[ZP] You already purchased Speed Boost")
return PLUGIN_HANDLED
}

if (money < cost)
{
client_print(id, print_chat, "[ZP] You don't have enough ammo packs to buy Speed Boost", get_pcvar_num(g_sb_cost))
return PLUGIN_HANDLED
}

zp_set_user_ammo_packs(id, money - cost)

g_hasSpeedBoost[id] = true

fm_set_rendering(id, kRenderFxGlowShell, get_pcvar_num(g_sb_red), get_pcvar_num(g_sb_green), get_pcvar_num(g_sb_blue), kRenderNormal, 255)
set_pev(id, pev_maxspeed, get_pcvar_float(g_sb_maxspeed))
set_task(get_pcvar_float(g_sb_time), "boost_over", id)
client_print(id, print_chat, "[ZP] You've purchased Speed Booster")

return 1
}


2: Fertőzes Ellsz.
Idézet:
[en]
CANNOT = You can't use this.
DISINFECT = %s disinfected %s with the Antidote Laser.
SHOTS_LEFT = You have %d of %d shots left. ^nGood luck.


3: Extra Cucc HOOK
Idézet:
/*==================================================================================================

==================================
= Kz-Arg Mod By ReymonARG =
==================================


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Copyright © 2008, ReymonARG
This file is provided as is (no warranties)

Kz-Arg Mod is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Kz-Arg Mod; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

// Creadits
* Teame06
* Kz-Arg Server
* Nv-Arg Community
* KzM Servers that I get the Model of de PHP for Top15:D
* Xtreme-Jumps.eu
* All persons that help in AMX Mod X > Scripting
arkshine, Emp`, danielkza, anakin_cstrike, Exolent[jNr], connorr,
|PJ| Shorty, stupok, SchlumPF, etc..


// Friends :D
* Ckx ( Argentina ) Kz Player
* ChaosAD ( Argentina ) Kz Player
* Kunqui ( Argentina ) Kz Player
* RTK ( Argentina ) Kz Player
* BLT ( Argentina ) Kz Player
* Juann ( Argentina ) Scripter
* Juanchox ( ? ) Kz Player
* Pajaro^ ( Argentina ) Kz Player
* Limado ( Argentina ) Kz Player
* Pepo ( Argentina ) Kz Player
* Kuliaa ( Argentina ) Kz Player
* Mucholote ( Ecuador ) Kz Player
* Creative & Yeans ( Spain ) Request me the Plugin, So I did :D

===============================================================================R=E=Y=M=O=N==A=R=G=*/
#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN "[ZP] Extra Item: Hook"
#define VERSION "1.1"
#define AUTHOR "ReymonARG & STRELOK (ZP Extra)"

new Float:g_hook_speed[33];
new Float:gravity;
new g_hook_color[33];
new g_naturalcolor[33][3];
new bool:hook[33];
new hook_to[33][3];
new hashook[33];
new beamsprite;
new g_item, g_maxplayers;

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("+hook","hook_on");
register_concmd("-hook","hook_off");

RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")

register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
g_maxplayers = get_maxplayers();

g_item = zp_register_extra_item("Hook ", 50, ZP_TEAM_HUMAN)
}

public plugin_precache()
{
beamsprite = precache_model("sprites/plasma.spr")
}

public zp_extra_item_selected(player, itemid)
{
gravity = fm_get_user_gravity(player)

if (itemid == g_item)
{
client_cmd(player, "bind x +hook")
hashook[player] = true
client_print(player, print_chat, "[ZP] You bought Hook. Use button X to pull the rope");
}
}

public client_connect(id)
{
g_hook_speed[id] = 320.0;
g_hook_color[id] = 0;
hashook[id] = false;
}

public event_round_start()
{
for(new i = 1; i < g_maxplayers; i++)
hashook[i] = false;
}

public hook_on(id)
{
if( !hashook[id] || hook[id] )
return PLUGIN_HANDLED;

set_pev(id, pev_gravity, 0.0);
set_task(0.1,"hook_prethink",id+10000,"",0,"b");
hook[id]=true;
hook_to[id][0]=999999;
hook_prethink(id+10000);
return PLUGIN_HANDLED;
}

public hook_off(id)
{
if (zp_get_user_zombie(id))
{
set_pev(id, pev_gravity, gravity);
}
else
{
set_pev(id, pev_gravity, 1.0);
}

hook[id] = false;
return PLUGIN_HANDLED;
}

public zp_user_infected_post(id, infector)
hashook[id] = false;

public fw_PlayerKilled(victim, attacker, shouldgib)
hashook[victim] = false;

public hook_prethink(id)
{
id -= 10000;

if(!is_user_alive(id))
hook[id]=false;

if(!hook[id])
{
remove_task(id+10000);
return PLUGIN_HANDLED;
}


static origin1[3];
new Float:origin[3];
get_user_origin(id,origin1);
pev(id, pev_origin, origin);

if(hook_to[id][0]==999999)
{
static origin2[3];
get_user_origin(id,origin2,3);
hook_to[id][0]=origin2[0];
hook_to[id][1]=origin2[1];
hook_to[id][2]=origin2[2];
}

//Create blue beam
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(1);
write_short(id);
write_coord(hook_to[id][0]);
write_coord(hook_to[id][1]);
write_coord(hook_to[id][2]);
write_short(beamsprite);
write_byte(1);
write_byte(1);
write_byte(5);
write_byte(18);
write_byte(0);
if( g_hook_color[id] == 0 )
{
write_byte(random(256));
write_byte(random(256));
write_byte(random(256));
}
else if( g_hook_color[id] == 1 )
{
write_byte(g_naturalcolor[id][0]);
write_byte(g_naturalcolor[id][1]);
write_byte(g_naturalcolor[id][2]);
}
write_byte(200);
write_byte(0);
message_end();

//Calculate Velocity
static Float:velocity[3];
velocity[0] = (float(hook_to[id][0]) - float(origin1[0])) * 3.0;
velocity[1] = (float(hook_to[id][1]) - float(origin1[1])) * 3.0;
velocity[2] = (float(hook_to[id][2]) - float(origin1[2])) * 3.0;

static Float:y;
y = velocity[0]*velocity[0] + velocity[1]*velocity[1] + velocity[2]*velocity[2];

static Float:x;
x = (g_hook_speed[id]) / floatsqroot(y);

velocity[0] *= x;
velocity[1] *= x;
velocity[2] *= x;

set_velo(id,velocity);

return PLUGIN_CONTINUE;
}

public set_velo(id,Float:velocity[3])
return set_pev(id,pev_velocity,velocity);


4: Extra It: Isten Mód
Idézet:
#include <amxmodx>
#include <zombieplague>
#include <fun>

new g_godmode

public plugin_init()
{
register_plugin("[ZP] Extra Item: Godmode", "1.0", "Ciio")
g_godmode = zp_register_extra_item("God Mod", 45, ZP_TEAM_HUMAN | ZP_TEAM_ZOMBIE)
}

public zp_extra_item_selected(id, itemid)
{
if (itemid == g_godmode)
{
set_user_godmode (id, 1)
client_print (id, print_chat, "[ZP] You bought Godmode for 15 seconds !")
set_task(15.0, "removegodmode", id)
}
}

public removegodmode(id)
{
set_user_godmode (id, 0)
client_print (id, print_chat, "[ZP] You just the godmode ")

}



5: Extra It : Teleport
Idézet:
/* Changelog:
v1.0 - First Release
v1.1 - Added bind function.
v1.2 - Added some special effects, fixed 2 bugs, added cooldown

To use teleport bind a key.
Example: bind "key" teleport. (bind f teleport)

WARNING:To prevent bugs do not teleport to sky.
*/


#include <amxmodx>
#include <fun>
#include <zombieplague>

new const PLUGIN_NAME[] = "[ZP] Teleport"
new const PLUGIN_VERSION[] = "1.2"
new const PLUGIN_AUTHOR[] = "NiHiLaNTh"

// Item ID
new g_teleport;

// Game Variables
new bool:hasTeleport[33];
new teleport_counter;
new Float:g_lastusetime[33];

// CVAR Pointers
new pcv_teleport_limit, pcv_teleport_cooldown;

// Sprite Index
new BubbleSprite;

// Plugin Initialization
public plugin_init()
{
// Plugin Call
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);

// Client Command
register_clcmd("teleport", "ActivateTeleport");

// Register new extra item
g_teleport = zp_register_extra_item("Teleport", 90, ZP_TEAM_HUMAN);

// CVARs
pcv_teleport_limit = register_cvar("zp_teleport_limit", "3");
pcv_teleport_cooldown = register_cvar("zp_teleport_cooldown", "10");
}

// Precache Files
public plugin_precache()
{
// Teleport Sound
precache_sound("warcraft3/new_teleport.wav");

// Sprite
BubbleSprite = precache_model("sprites/blueflare2.spr");
}

// New round started - remove all teleports
zp_round_started(gamemode, id)
{
// On round start client cannot have our extra item
if (hasTeleport[id])
return PLUGIN_CONTINUE;
}

// Player bought our item...
public zp_extra_item_selected(owner, itemid)
{
if (itemid == g_teleport)
{
if (hasTeleport[owner])
{
client_print(owner, print_center, "Already own this item.");
hasTeleport[owner] = false;
}
else
{
hasTeleport[owner] = true;
teleport_counter = 0;
client_print(owner, print_chat, "[ZP] To use teleport bind a key(bind f teleport)");
}
}
}

// Activate Teleport
public ActivateTeleport(id)
{
// For some reason zombie or survivor or nemesis has teleport
if (zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id))
return PLUGIN_CONTINUE;

// Check if player has bought teleport
if (!hasTeleport[id])
{
client_print(id, print_center, "Buy teleport first");
return PLUGIN_CONTINUE;
}

// Teleport cooldown not over
if (get_gametime() - g_lastusetime[id] < get_pcvar_float(pcv_teleport_cooldown))
{
client_print(id, print_center, "You must wait a bit.");
return PLUGIN_CONTINUE;
}

// Get old and new location
new OldLocation[3], NewLocation[3];

// Get current players location
get_user_origin(id, OldLocation);

// Get location where player is aiming(where he will be teleported)
get_user_origin(id, NewLocation, 3);

// Create bubbles in a place where player teleported
// First, get user origin
new UserOrigin[3];
get_user_origin(id, UserOrigin);

// Now create bubbles
new BubbleOrigin[3];
BubbleOrigin[0] = UserOrigin[0];
BubbleOrigin[1] = UserOrigin[1];
BubbleOrigin[2] = UserOrigin[2] + 40;

message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_SPRITETRAIL) // TE ID
write_coord(BubbleOrigin[0]) // Start Position X
write_coord(BubbleOrigin[1]) // Start Position Y
write_coord(BubbleOrigin[2]) // Start Position Z
write_coord(UserOrigin[0]) // End Position X
write_coord(UserOrigin[1]) // End Position Y
write_coord(UserOrigin[2]) // End Position Z
write_short(BubbleSprite) // Sprite Index
write_byte(30) // Count
write_byte(10) // Life
write_byte(1) // Scale
write_byte(50) // Velocity Along Vector
write_byte(10) // Rendomness of Velocity
message_end();

// Increase teleport counter
teleport_counter++

// Play needed sound
emit_sound(id, CHAN_STATIC, "warcraft3/blinkarrival.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM);

// Player cannot stuck in the wall/floor
NewLocation[0] += ((NewLocation[0] - OldLocation[0] > 0) ? -50 : 50);
NewLocation[1] += ((NewLocation[1] - OldLocation[1] > 0) ? -50 : 50);
NewLocation[2] += 40;

// Teleport player
set_user_origin(id, NewLocation);

// Set current teleport use time
g_lastusetime[id] = get_gametime();

// Check if user has reached limit
new teleport_limit = get_pcvar_num(pcv_teleport_limit);
if (teleport_counter == teleport_limit)
{
hasTeleport[id] = false;
}

return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/

Szerző:  norbee.16 [ 2014.08.26. 03:13 ]
Hozzászólás témája:  Re: [ZP]Extra Itemmek Fordítási help.

1. [ZP] Extra cuc : Speed Boost
3.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <fakemeta_util>
  4. #include <hamsandwich>
  5. #include <zombieplague>
  6.  
  7. #define PLUGIN "[ZP] Extra Item: Hook"
  8. #define VERSION "1.1"
  9. #define AUTHOR "ReymonARG & STRELOK (ZP Extra)"
  10.  
  11. new Float:g_hook_speed[33];
  12. new Float:gravity;
  13. new g_hook_color[33];
  14. new g_naturalcolor[33][3];
  15. new bool:hook[33];
  16. new hook_to[33][3];
  17. new hashook[33];
  18. new beamsprite;
  19. new g_item, g_maxplayers;
  20.  
  21. public plugin_init()
  22. {
  23. register_plugin(PLUGIN, VERSION, AUTHOR)
  24.  
  25. register_concmd("+hook","hook_on");
  26. register_concmd("-hook","hook_off");
  27.  
  28. RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
  29.  
  30. register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
  31. g_maxplayers = get_maxplayers();
  32.  
  33. g_item = zp_register_extra_item("Hook ", 50, ZP_TEAM_HUMAN)
  34. }
  35.  
  36. public plugin_precache()
  37. {
  38. beamsprite = precache_model("sprites/plasma.spr")
  39. }
  40.  
  41. public zp_extra_item_selected(player, itemid)
  42. {
  43. gravity = fm_get_user_gravity(player)
  44.  
  45. if (itemid == g_item)
  46. {
  47. client_cmd(player, "bind x +hook")
  48. hashook[player] = true
  49. client_print(player, print_chat, "[ZP] Vettel Hook-t. Hasznalat az X betuvel.");
  50. }
  51. }
  52.  
  53. public client_connect(id)
  54. {
  55. g_hook_speed[id] = 320.0;
  56. g_hook_color[id] = 0;
  57. hashook[id] = false;
  58. }
  59.  
  60. public event_round_start()
  61. {
  62. for(new i = 1; i < g_maxplayers; i++)
  63. hashook[i] = false;
  64. }
  65.  
  66. public hook_on(id)
  67. {
  68. if( !hashook[id] || hook[id] )
  69. return PLUGIN_HANDLED;
  70.  
  71. set_pev(id, pev_gravity, 0.0);
  72. set_task(0.1,"hook_prethink",id+10000,"",0,"b");
  73. hook[id]=true;
  74. hook_to[id][0]=999999;
  75. hook_prethink(id+10000);
  76. return PLUGIN_HANDLED;
  77. }
  78.  
  79. public hook_off(id)
  80. {
  81. if (zp_get_user_zombie(id))
  82. {
  83. set_pev(id, pev_gravity, gravity);
  84. }
  85. else
  86. {
  87. set_pev(id, pev_gravity, 1.0);
  88. }
  89.  
  90. hook[id] = false;
  91. return PLUGIN_HANDLED;
  92. }
  93.  
  94. public zp_user_infected_post(id, infector)
  95. hashook[id] = false;
  96.  
  97. public fw_PlayerKilled(victim, attacker, shouldgib)
  98. hashook[victim] = false;
  99.  
  100. public hook_prethink(id)
  101. {
  102. id -= 10000;
  103.  
  104. if(!is_user_alive(id))
  105. hook[id]=false;
  106.  
  107. if(!hook[id])
  108. {
  109. remove_task(id+10000);
  110. return PLUGIN_HANDLED;
  111. }
  112.  
  113.  
  114. static origin1[3];
  115. new Float:origin[3];
  116. get_user_origin(id,origin1);
  117. pev(id, pev_origin, origin);
  118.  
  119. if(hook_to[id][0]==999999)
  120. {
  121. static origin2[3];
  122. get_user_origin(id,origin2,3);
  123. hook_to[id][0]=origin2[0];
  124. hook_to[id][1]=origin2[1];
  125. hook_to[id][2]=origin2[2];
  126. }
  127.  
  128. //Create blue beam
  129. message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
  130. write_byte(1);
  131. write_short(id);
  132. write_coord(hook_to[id][0]);
  133. write_coord(hook_to[id][1]);
  134. write_coord(hook_to[id][2]);
  135. write_short(beamsprite);
  136. write_byte(1);
  137. write_byte(1);
  138. write_byte(5);
  139. write_byte(18);
  140. write_byte(0);
  141. if( g_hook_color[id] == 0 )
  142. {
  143. write_byte(random(256));
  144. write_byte(random(256));
  145. write_byte(random(256));
  146. }
  147. else if( g_hook_color[id] == 1 )
  148. {
  149. write_byte(g_naturalcolor[id][0]);
  150. write_byte(g_naturalcolor[id][1]);
  151. write_byte(g_naturalcolor[id][2]);
  152. }
  153. write_byte(200);
  154. write_byte(0);
  155. message_end();
  156.  
  157. //Calculate Velocity
  158. static Float:velocity[3];
  159. velocity[0] = (float(hook_to[id][0]) - float(origin1[0])) * 3.0;
  160. velocity[1] = (float(hook_to[id][1]) - float(origin1[1])) * 3.0;
  161. velocity[2] = (float(hook_to[id][2]) - float(origin1[2])) * 3.0;
  162.  
  163. static Float:y;
  164. y = velocity[0]*velocity[0] + velocity[1]*velocity[1] + velocity[2]*velocity[2];
  165.  
  166. static Float:x;
  167. x = (g_hook_speed[id]) / floatsqroot(y);
  168.  
  169. velocity[0] *= x;
  170. velocity[1] *= x;
  171. velocity[2] *= x;
  172.  
  173. set_velo(id,velocity);
  174.  
  175. return PLUGIN_CONTINUE;
  176. }
  177.  
  178. public set_velo(id,Float:velocity[3])
  179. return set_pev(id,pev_velocity,velocity);

4.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3. #include <fun>
  4.  
  5. new g_godmode
  6.  
  7. public plugin_init()
  8. {
  9. register_plugin("[ZP] Extra Item: Godmode", "1.0", "Ciio")
  10. g_godmode = zp_register_extra_item("God Mod", 45, ZP_TEAM_HUMAN | ZP_TEAM_ZOMBIE)
  11. }
  12.  
  13. public zp_extra_item_selected(id, itemid)
  14. {
  15. if (itemid == g_godmode)
  16. {
  17. set_user_godmode (id, 1)
  18. client_print (id, print_chat, "[ZP] Vasaroltal Isten modot 15 masodpercig!")
  19. set_task(15.0, "removegodmode", id)
  20. }
  21. }
  22.  
  23. public removegodmode(id)
  24. {
  25. set_user_godmode (id, 0)
  26. client_print (id, print_chat, "[ZP] Lejart az Isten modod!")
  27.  
  28. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/