AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NEW! Avatar Mod [ CS 1.6 ] I need some help :S (https://forums.alliedmods.net/showthread.php?t=163266)

Krle 07-28-2011 11:42

NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
So... Here is the CODE:
PHP Code:

CENSURED! PRIVATE CODE

I need some Help, like
1.Removing BuyZone [DONE]
2.Avatars type /cam and have 3rd person view [DONE]
3.No weapon drop + no weapon drop on die...[DONE]
4.When player choose class, he needs to wait untill next spawn to get class[DONE]
5.Message in HUD shall appear 2-3 sec right after player joins the server, and without tupe-ing /xp and never disappears :)[DONE]
6.Every class need to have it's own level...
7.After Player Reaches level 20(max lvl)He doesn't see the HUD msn :\

Thank ya

Thats it :)

r0ck 07-28-2011 12:50

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
remove buyzones / block

PHP Code:


#include <amxmodx>
#include <fakemeta>

new g_msgStatusIcon

public plugin_init()
{
  
g_msgStatusIcon get_user_msgid("StatusIcon");
  
register_message(g_msgStatusIcon"msgStatusIcon");
}

// Block buyzone (by ConnorMcLeod)
public msgStatusIcon(msgidmsgdestid)
{
  static 
szIcon[8];
  
get_msg_arg_string(2szIcon7);
 
  if(
equal(szIcon"buyzone") && get_msg_arg_int(1))
  {
    
set_pdata_int(id235get_pdata_int(id235) & ~(1<<0));
    return 
PLUGIN_HANDLED;
  }
 
  return 
PLUGIN_CONTINUE;


http://forums.alliedmods.net/showthread.php?p=202171 no weapon drop

eXtrem 07-28-2011 13:15

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
Removing buyzone :

Code:
#include < amxmodx > #include < engine > #include < fakemeta > new const info_map_parameters[ ] = "info_map_parameters"; new g_hSpawn; public plugin_precache( ) {     new iEntity = create_entity( info_map_parameters );     DispatchKeyValue( iEntity, "buying", "3" );     DispatchSpawn( iEntity );         g_hSpawn = register_forward( FM_Spawn, "FwdSpawn" ); } public FwdSpawn( iEntity ) {     static szClassname[ 32 ];     entity_get_string( iEntity, EV_SZ_classname, szClassname, 31 );         if( equal( szClassname, info_map_parameters ) )     {         remove_entity( iEntity );                 return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; } public plugin_init( ) {     if( g_hSpawn > 0 )     {         unregister_forward( FM_Spawn, g_hSpawn );     } }

DruGzOG 07-28-2011 13:55

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
grimvh2 I believe began coding one. Might want to team up with him and finish it -___-

Krle 07-28-2011 15:37

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
@DruGzOG no, i wan't Personal code...

Thank ya all ppl, this will help Alot!

BTW if you have Google Chrome, translate this page from Serbian - English or However to see what is this all about :)
http://www.kgb-hosting.com/forum/sho...tar-Mod-CS-1.6

@r0ck Works, thanks...
But i still think thats better method than eXtrem cause eXtrems method requires both engine and fakemeta... Nevermind.. Its important it Worked... BuyZoneRemove, check! :D

r0ck 07-29-2011 00:32

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
Quote:

Originally Posted by Krle (Post 1520564)
Thank ya all ppl, this will help Alot!

BTW if you have Google Chrome, translate this page from Serbian - English or However to see what is this all about :)
http://www.kgb-hosting.com/forum/sho...tar-Mod-CS-1.6

Quote:

I played just now on an Avatar the server, but my general nesvidja ... Means going messaging [PA] Blabla, and I skapirao it's the same PA, but only altered models and maps and to ... So I dropped the server and decided to make an Avatar mod plugin (thanks to MI $ KE, Sp @ jk, Ikac, OvidiuS, Brundix7 who gave me 200 times prepravljali mod I climbed to the makeup on and do some Avarar Mod ) motion-gaming . no-ip.info -> Avatar Mod TEST SERVER What is this ... When a player Spawn-UJE he comes out menu to choose your class (depending on the team (if CT is then chosen Avatar, A If T, then a soldier ^) Each player has his own model (Model Player avatars are, as well as soldiers, but also have a lot of avatars strong feet, and the soldiers one of the modern rifle ) Avatars have much HP, but only the knife, while the soldiers have little HP, but they have 2 or more guns, pistols, grenades ... This mode has a special folder, and looked for them at all sites for maps, if you're looking for and does not hate you xD (all folders starting at av_pandora (say ...) and also has a shop where you can buy some interesting stvarcice, XP ... Yes, that also you have left, at every level you get more HP, SPEED, depending on whether you are a soldier or Avatar ... This plugin is currently in beta version (0.3) so it has many bugs and I do not recommend you do so inserting the server, but if you're compassionate you can drop in and tell me your opinion ^. ^ Well, take a look at what are the ingredients first Release (bugs, features, etc ) Avatar Mod [CS 1.6] BETA v0.3 ========================= Get Plugin | Get Source | Resources = ======================== ========================== ==== RELEASE 0.3 : WHAT IS INCLUDED, AND DONE: [1] [ ||||||||| |] * When a player enters the server, odma he comes out menu to choose a class, depending on the Who's TEAM entered [BUG CURRENTLY 1] [2] [ |||||||||| ] * Each player has a Player Weapon Model and Model, depending on the TEAM [BUGS Currently 0] [3] [ | | | | | | * Class ||||] leveluje is, at every level get something new, such as HP, SPEED, depending on the TEAM ... [BUGS CURRENTLY 2] [4] [ |||||| | | | | ] * Shop [CURRENTLY 1 BUG] [5] [ |||||| ||||] * Stats player is displayed in the HUD (Class, Level, XP, Helt) [BUGS CURRENTLY 2] [6 ] [ |||||||||| ] * Players are kept data (xp, levels) when you go out from the server ... [BUGS Currently 0] [7] [ |||||||| | |] * When you defeat Team T (soldiers) Instead Terrorist's Win in HUD lists Soldiers have won the battle, and vice versa, an avatar [CURRENTLY 1 BUG] [8] [ |||||||||| ] * Prefix (such as [ Test], [XP Mod], etc are now [Avatar Mod], and plug the whole translated into Serbian ... [BUGS Currently 0] WHAT ARE CURRENTLY Thees BUGS! [1] [1 CURRENTLY BUG] * When a player chooses class, had to wait to die to his class and has acknowledged: S [Haha skapirao why, this lobe ] [2] [BUGS Currently 0] * Models currently nice working [TESTED] [3] [BUGS CURRENTLY 2] * When Maximum player reaches level, not that he displays in the HUD STATS ... Also, when you get the XP necessary to izlevelovao, must die to his level accepted: S [4] [BUGS CURRENTLY 1] * Shop menu now works just what I had to HamSpawn all the players who put spawnuju $ 0 to ... [5] [BUGS CURRENTLY 2] * Players must have typing / xp, and I want it that as soon as it placed a share of the server that his odma the shows, and also to never prone ... [6] [BUGS Currently 0] * Currently all data is kept nice [TESTED] [7] [CURRENTLY 1 BUG] * Now works beautifully colored representations Avatars Have won The Battle and vice versa, except that izpod again writes Win CT's and vice versa ... It has to be prone to somehow: S [8] [BUGS Currently 0] * Plugin is a whole translated into Serbian, and all transferred to the Prefix Avatar Mod, signs No bugs in the annoying bugs: [1] * this bug annoys me the most ... for each class (irrelevant koj TEAM) levels, and XP are the same ... [2] [FIXED] * When a player dies gets XP ... (Thanks to Brundix7) ============================== RELEASE 0.2 : WHAT IS INCLUDED, AND DONE! [1] [ | |||||||| |] * When a player enters the server, odma he comes out menu to choose a class, depending on the Who is team entered [BUG CURRENTLY 1] [2] [ |||||| | | | |] * Each player has a Player Weapon Model and Model, depending on the TEAM [BUGS Currently 0] [3] [ |||||| ||||] * Class is leveluje, at every level gets something new such as HP, SPEED, depending on the TEAM ... [BUGS CURRENTLY 2] [4] [ |||||||||| ] * Shop [CURRENTLY 1 BUG] [5] [ | | | | | | * ||||] Stats player is displayed in the HUD (Class, Level, XP, Helt) [BUGS CURRENTLY 2] [6] [ |||||||||| ] * Players are kept data ( xp, levels) when you go out from the server ... [BUGS Currently 0] [7] [ | | ||||||||] * Prefix (such as [Test] [XP Mod], etc. have to bit [ Avatar Mod], and the whole plugin translated in Serbian ... [BUGS Currently 0] [8 ][||||||||||] * When you defeat Team T (soldiers) Instead of the Terrorist's Win in HUD lists the Soldiers won the Battle and vice versa for the avatar [CURRENTLY BUGS 1] WHAT ARE CURRENTLY Thees BUGS! [1] [1 CURRENTLY BUG] * When a player chooses a class, had to wait to die that he respected the class S [Haha skapirao why, This lobe ] [2] BUGS Currently 0] * Models currently nice working [TESTED] [3] BUGS CURRENTLY 2] * When a player reaches the Maximum level, not that he displays in the HUD STATS ... Also, when you get the XP necessary to the izlevelovao, must die to his level accepted: S [4] [BUGS CURRENTLY 1] * So the only bug is what one does not recognize the command CLIENT / shop, is a registered ... Resic this before tonight ... [ 5] [BUGS CURRENTLY 2] * The player has to type / xp, and I want it that as soon as it placed a share of the server that he odma shows, and also to never prone ... [6] [BUGS Currently 0] * Currently all data is kept nice [TESTED] [7] [BUGS Currently 0] * Almost anything not nice ... It will be translated into next-RELEASE translated in full [8] [CURRENTLY 1 BUG] * This is laziness, probably in error code ... We'll solve it ... annoying bugs: [1] * this bug annoys me the most ... for each class (irrelevant koj TEAM) levels, and XP are the same ... (Resava this soon) [2] [FIXED ] * When a player dies gets XP ... (Thanks to Brundix7) ============================== RELEASE 0.1 : WHAT IS INCLUDED, AND DONE! [1] [ | | | | ||||||] * When a player enters the server, odma he comes out menu to choose a class, depending on the Who is team entered [BUG CURRENTLY 1] [2] [ | |||||||||] * Each player has a Player Weapon Model and Model, depending on the TEAM [BUGS Currently 0] [3] [ |||||| ||||] * Class the leveluje at each level gets something new, such as HP, SPEED, depending on the TEAM ... [BUGS CURRENTLY 2] [4 ][||||||||||] * Shop [CURRENTLY 1 BUG] [5] [ |||||| ||||] * Stats player is displayed in the HUD (Class, Level, XP, Helt) [BUGS CURRENTLY 2] [6] [ ||||||| | | | ] * Players are kept data from the server when it comes out ... [BUGS Currently 0] [7] [ | | ||||||||] * Prefix (such as [Test] [XP Mod] , etc. have bit [Avatar Mod], and plug the whole translated into Serbian ... [BUGS Currently 0] WHAT ARE CURRENTLY Thees BUGS! [1] [1 CURRENTLY BUG] * When a player enters the CT Team, Odma elected class But when you get the T, do not eject him MENU ... Also, when choosing a class, had to wait to die that he respected the class S [2] BUGS Currently 0] * Models currently nice working [TESTED] [3] BUGS CURRENTLY 2] * When a player reaches the Maximum level, not that his views STATS in HUD ... Also, when you get the XP necessary to izlevelovao, must die to his level accepted: S [4] [BUGS CURRENTLY 1 ] * So the only bug is what one does not recognize the command CLIENT / shop, is a registered ... Resic this up tonight ... [5] [BUGS CURRENTLY 2] * The player has to type / xp, and I want to be namesti as soon as you enter the server that he odma shows, and also to never prone to ... Also, the Terror (troops) this reluctantly, as they choose classes neradi: S [6] [BUGS Currently 0] * Currently all data beautifully kept [TESTED] [7] [BUGS Currently 0] * Plugin is currently CEO of the English, in one of these next-RELEASE will be full at the Serbian annoying bugs: [1] * this bug annoys me the most ... For each class (irrelevant koj TEAM) levels, and XP are the same ... (Resava this soon) [2] * When a player dies ... get XP installation will write when I am adorned some major bugs ... For now, let it just like this ... Post updateujem soon as I add / resim more thing ... Also I bump ovati topic as soon as the add / resimm something PozZ ^


r0ck 07-29-2011 00:43

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
Quote:

3.No weapon drop + no weapon drop on die...
no weapon drop on Die

http://forums.alliedmods.net/showthread.php?p=202171

BLOCK WEAPON DROP

PHP Code:

new booldrop_locked

public plugin_init()
{
    
register_clcmd("drop","drop",0,"")
        
    
register_logevent("round_start"2"0=World triggered""1=Round_Start")
}

public 
round_start()
{
    
drop_locked true
}

public 
drop(id)
{
    if (
drop_locked)
        { 
                
client_print(idprint_center"Can't Drop Weapons")
                return 
PLUGIN_HANDLED
         
}
    return 
PLUGIN_CONTINUE



Krle 07-29-2011 06:10

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
Thank you r0ck, you're the BEST!

Here i will translate it for you! :D

Code:

I just played on a Avatar server, but I generally don't like it :) ... Means going messaging [ZP] Blabla and then I found out that it's actually ZP but only with changed maps and models to Avatar ones... So I dropped by the server and decided to make an Avatar mod plugin (thanks to MI $ KE, Sp @ jk, Ikac, OvidiuS, Brundix7 who rewrote my code 200 times I managed to mod makeup on it and make some Avarar Mod)

motion-gaming . no-ip . info -> Avatar Mod TEST SERVER

What is it ...

When a player Spawns he gets out his menu to choose his class (depending on the Team CT = Avatars, T=Soldiers)
Each player has a model (Model Player avatars are, as well as soldiers, but also avatars have a good looking knife, and the soldiers some of those modern rifles)

Avatars have a lot of HP, but only a knife, while the soldiers have little HP, but have 2 or more rifles, pistols, grenades ...

This mode has a special maps, i'm search for them on all sites for maps, (all maps starting with PREFIX av_ and so there is map av_pandora_gs, av_dust2...

There is also a shop where you can buy some interesting goodies, XP ...

Yes,  at every level you get more HP, SPEED, depending on whether you are a soldier or Avatar ...

This plugin is currently in beta version (0.3) so that there are many bugs and do not recommend you to install it on the server, but if you can install it if good-hearted, and tell me your opinion ^. ^

So take a look at what all have first Release (bugs, features, etc.)
And so on, and so on...

Ill try you're no weapon drop now :)

@EDIT: WORKS THANKS THANKS THANKS!!!

.Dare Devil. 07-29-2011 07:39

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
This is avatar : the last airbender
or something else avatar xD ?

Krle 07-29-2011 08:09

Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
 
Have you Watched film Avatar? If you did, you will know whats this all about, if no, watch it..

When i buy XP, when someone is in server too, server crashes, but if i'm alone i can buy :S
Don't know how to fix that :) FIXED

PHP Code:

CENSURED! PRIVATE CODE



All times are GMT -4. The time now is 01:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.