User
Pass
2FA
 
 

zombie xp human armura

 
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 Message707
WanNnted
[Banned user]


Banned


Status: Offline
(since 31-08-2018 23:07)
Joined: 24 Jul 2015
Posts: 104, Topics: 32
Location: Moldova, Republic of

Reputation: 80.5
Votes: 3

     
Post Posted: 08-06-2018, 19:00:02 | Translate post to: ... (Click for more languages)

Vreau ca la fiecare clasa sa le dau armura, deja voi seta eu imi aratati doar la una
1 human - 10 armura
2 human - 20 armura
3 human - 30 armura si tot asa
deci asa

/*================================================================================
Human Test
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <zombiexp>

// Human Attributes
new const hclass_name[] = { "Soldier" } // name
new const hclass_info[] = { "Power+" } // description
new const hclass_model[] = { "" } // model
new const hclass_weapons[] = { } // weapons
const hclass_health = 320 // health
const hclass_speed = 260 // speed
const Float:hclass_gravity = 0.95 // gravity
const hclass_level = 2 // level required to use

// Class IDs
new g_hclassid

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
new registerText[32]
formatex( registerText, sizeof registerText - 1, "[ZPXP] %s human", hclass_name)

register_plugin(registerText, "1.0", "N3messys")

// Register the new class and store ID for reference
g_hclassid = zpxp_register_human_class(hclass_name, hclass_info, hclass_model, hclass_weapons, hclass_health, hclass_speed, hclass_gravity, hclass_level)

if(g_hclassid == -1)
{
server_print("[ZPXP] You have not properly setup your Zombie XP Mod.");
}
}

// User Infected forward
public zp_user_infected_post(id, infector, nemesis)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;

// Undo any settings we have saved here

}

public zp_user_humanized_post(id)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;

// User turned human
if (zp_get_user_survivor(id) == 1)
{
// He's survivor, remove any changes made in the plugin
zp_user_infected_post(id, 0, 0)
} else {
zp_round_started_human(id)
}
}

//This is a forward from zpxp, as opposed to ZPs round_start (which is when infection begins) this is the true beginning of the round
public zp_round_started_human(id)
{
if (zp_get_user_human_class(id) != g_hclassid) return;

// Set our human's powers!


}

0 0
  
Back to top
View user's profile Send private message
appLy.G

[.::Pred.FreakZ.Ro::.]



Status: Offline
(online 13 hours ago)
Joined: 10 Mar 2018
Posts: 299, Topics: 38
Location: Romania

Reputation: 149
Votes: 14

       
Post Posted: 08-06-2018, 20:51:36 | Translate post to: ... (Click for more languages)

Ai cumva sa imi dai vreun include de la sursa zombie_xp?



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


Banned


Status: Offline
(since 31-08-2018 23:07)
Joined: 24 Jul 2015
Posts: 104, Topics: 32
Location: Moldova, Republic of

Reputation: 80.5
Votes: 3

     
Post Posted: 08-06-2018, 22:13:12 | Translate post to: ... (Click for more languages)

#include <amxmodx>
#include <amxmisc>
#include <nvault>
#include <fakemeta>
#include <zombieplague>
#include <hamsandwich>
#include <fun>

0 0
  
Back to top
View user's profile Send private message
appLy.G

[.::Pred.FreakZ.Ro::.]



Status: Offline
(online 13 hours ago)
Joined: 10 Mar 2018
Posts: 299, Topics: 38
Location: Romania

Reputation: 149
Votes: 14

       
Post Posted: 09-06-2018, 06:16:12 | Translate post to: ... (Click for more languages)

Nu asta,imi trebuie include-ul zombie_xp.inc



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


Banned


Status: Offline
(since 31-08-2018 23:07)
Joined: 24 Jul 2015
Posts: 104, Topics: 32
Location: Moldova, Republic of

Reputation: 80.5
Votes: 3

     
Post Posted: 09-06-2018, 09:38:55 | Translate post to: ... (Click for more languages)

*================================================================================
Zombie XP Include
=================================================================================*/

/*#if defined _zombieplague_included
#endinput
#endif
#define _zombieplague_included
*/

//registers human class plugins
native zpxp_register_human_class(const name[], const info[], const model[], const weapons[], hp, speed, Float:gravity, level)

//registers zombie classes (vital so our mod can see whats available + level)
native zpxp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback, level)

//checking for human registers
native zp_get_user_human_class(id)

//same as event_round_start, for human plugins
forward zp_round_started_human(id)

/*================================================================================
For giving guns to humans, here is what you need to know

-----Primary Guns-----
"weapon_galil", "weapon_famas", "weapon_m4a1", "weapon_ak47", "weapon_sg552", "weapon_aug", "weapon_scout",
"weapon_m3", "weapon_xm1014", "weapon_tmp", "weapon_mac10", "weapon_ump45", "weapon_mp5navy", "weapon_p90"

-----Secondary Guns-----
"weapon_glock18", "weapon_usp", "weapon_p228", "weapon_deagle", "weapon_fiveseven", "weapon_elite"

-----Additional Items-----
"weapon_hegrenade", "weapon_flashbang", "weapon_smokegrenade"

=================================================================================*/

enum
{
WEAPON_GALIL = 1,
WEAPON_FAMAS,
WEAPON_M4A1,
WEAPON_AK47,
WEAPON_SG552,
WEAPON_AUG,
WEAPON_SCOUT,
WEAPON_M3,
WEAPON_XM1040,
WEAPON_TMP,
WEAPON_MAC10,
WEAPON_UMP45,
WEAPON_MP5NAVY,
WEAPON_P90,
WEAPON_GLOCK18,
WEAPON_USP,
WEAPON_P228,
WEAPON_DEAGLE,
WEAPON_FIVESEVEN,
WEAPON_ELITE,
WEAPON_HEGRENADE,
WEAPON_FLASHBANG,
WEAPON_SMOKEGRENADE
}

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

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 30-06-2018, 08:54:23 | Translate post to: ... (Click for more languages)

Spoiler:


Functioneaza,am testat eu. Iti da 30 armura cand spawnezi dar si cand iei antidot. Merge cum trebuie.

Poti sa faci celelalte clase cum doresti,doar ca trebuie sa le modifici numele,lvl .. si acolo unde vezi "cs_set_user_armor(id, userarmor + 30, ArmorType)" in cod modifici valoarea 30 cu oricat vrei tu sa dea armura la nivelul respectiv.

Si la fiecare clasa sa redenumesti numele g_hclassid ca altfel va da armura la toate clasele care folosesc valoarea asta in cod. Pui si tu g_hclassy .. g_hclassi

2 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 InLoveCs, 17 July 2018 13:52



 
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 07-05-2024, 11:33:12
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x