Raised This Month: $ Target: $400
 0% 

Vip new rank, help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
boyca
BANNED
Join Date: Nov 2011
Old 11-25-2011 , 07:18   Vip new rank, help!
Reply With Quote #1

Hello There,
i am the new boy.
I was wondering if you boys can help me with that, i want to make the plugin with this flags:
"abcdefghijklmnopqrstu"
"bcdefghijklmnopqrstu"
"bcdefhijklmnopqrsu"
"bcdefhijklmnopqru"
"bcdefijlmnopqru"
"bcdefijmnou"
"bcdefijm"
"bcdeijm"
"bceium"
"bcei"
And to small "bcei" to owner "abcdefghijklmnopqrstu" to receive health, armor etc.

abcdefghijklmnopqrstu life 999 + 300 armour speed 450 + weapon_flashbang + weapon_flashbang + weapon_hegrenade
bcdefghijklmnopqrstu life 750 + 250 armour speed 420 + weapon_hegrenade + weapon_hegrenade
bcdefhijklmnopqrsu life 650 + 220 armour speed 400 + weapon_flashbang
bcdefhijklmnopqru life 500 + 200 armour speed 380 + weapon_flashbang
bcdefijlmnopqru life 400 + 190 armour speed 360
bcdefijmnou life 300 + 180 armour speed 340
bcdefijm life 200 + 170 armour + speed 320
bcdeijm life 150 + 160 armour + speed 300
bceium 150 armour + speed 280
bcei 100 armour + speed 260

And every flags to have a diferit skins, and if possible to make a new folder where to download the resources, like cstrike/model/adminszone/
Here i uploaded models for every flags, http://www.girlshare.ro/2905651.1
"abcdefghijklmnopqrstu" - smith9
"bcdefghijklmnopqrstu" - smith8
"bcdefhijklmnopqrsu" - smith7
"bcdefhijklmnopqru" - smith6
"bcdefijlmnopqru" - smith5
"bcdefijmnou" - smith4
"bcdefijm" - smith3
"bcdeijm" - smith2
"bceium" - smith1
"bcei" - smith

I dont speak so good englesh and google translate doesen't help me,
i hope you boys understood what i want.

Last edited by boyca; 11-25-2011 at 07:19.
boyca is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 11-25-2011 , 07:38   Re: Vip new rank, help!
Reply With Quote #2

Cant understand your question ??
raghunarnindi001 is offline
boyca
BANNED
Join Date: Nov 2011
Old 11-25-2011 , 08:18   Re: Vip new rank, help!
Reply With Quote #3

Look here http://forums.alliedmods.net/showthread.php?t=95520
This plugin i want to make some more flags with another skin for every flag
You understand now ? I hope is yes.
Thanks for reply
boyca is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 11-25-2011 , 09:36   Re: Vip new rank, help!
Reply With Quote #4

model for the people that have that flag?
http://www.amxmodx.org/funcwiki.php?go=func&id=257
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
boyca
BANNED
Join Date: Nov 2011
Old 11-25-2011 , 13:31   Re: Vip new rank, help!
Reply With Quote #5

Yes, and give for people that have that flag a special power
I dont know how to put the model for every flag . Here i have .sma

Code:
#include < amxmodx >
#include < fun >
#include < cstrike >
#include < hamsandwich >

/*

abcdefghijklmnopqrstu life 300 + 300 armour speed 300
bcdefghijklmnopqrstu life 200 + 250 armour speed 290
bcdefhijklmnopqrsu life 150 + 150 armour speed 280
bcdefhijklmnopqru life 150 + 150 armour speed 270
bcdefijlmnopqru life 150 + 150 armour speed 260
bcdefijmnou life 125 + 150 armour speed 260
bcdefijm 150 armour + speed 260
bcdeijm 150 armour + speed 260
bceium 150 armour + speed 260
bcei 150 armour + speed 260

*/

enum AdminData
{
   Admin_Flags,
   Admin_Health,
   Admin_Armor,
   Float:Admin_Speed
};

new const g_szAdminFlags[ ][ ] =
{
   "abcdefghijklmnopqrstu",
   "bcdefghijklmnopqrstu",
   "bcdefhijklmnopqrsu",
   "bcdefhijklmnopqru",
   "bcdefijlmnopqru",
   "bcdefijmnou",
   "bcdefijm",
   "bcdeijm",
   "bceium",
   "bcei"
};

#define ADMIN_LEVELS sizeof( g_szAdminFlags )

new g_eAdminData[ ADMIN_LEVELS ][ AdminData ] =
{
   // health and armor values are the amount to add, not to set
   { 0, 200, 300, 300.0 },
   { 0, 100, 250, 290.0 },
   { 0, 50, 150, 280.0 },
   { 0, 50, 150, 270.0 },
   { 0, 50, 150, 260.0 },
   { 0, 25, 150, 260.0 },
   { 0, 0, 150, 260.0 },
   { 0, 0, 150, 260.0 },
   { 0, 0, 150, 260.0 },
   { 0, 0, 150, 260.0 }
};

#define MAX_PLAYERS 32

new g_iAdminLevel[ MAX_PLAYERS + 1 ];

public plugin_init( )
{
   register_plugin( "Admin Levels", "0.0.1", "Exolent" );
   
   register_event( "CurWeapon", "EventCurWeapon", "be", "1=1" );
   
   RegisterHam( Ham_Spawn, "player", "FwdPlayerSpawnPost", 1 );
   
   for( new i = 0; i < ADMIN_LEVELS; i++ )
   {
      g_eAdminData[ i ][ Admin_Flags ] = read_flags( g_szAdminFlags[ i ] );
   }
}

public EventCurWeapon( iPlayer )
{
   new iLevel = g_iAdminLevel[ iPlayer ];
   
   if( iLevel >= 0 )
   {
      set_user_maxspeed( iPlayer, Float:g_eAdminData[ iLevel ][ Admin_Speed ] );
   }
}

public FwdPlayerSpawnPost( iPlayer )
{
   if( is_user_alive( iPlayer ) )
   {
      g_iAdminLevel[ iPlayer ] = -1;
      
      new iFlags = get_user_flags( iPlayer );
      
      for( new i = 0; i < ADMIN_LEVELS; i++ )
      {
         if( ( iFlags & g_eAdminData[ i ][ Admin_Flags ] ) == g_eAdminData[ i ][ Admin_Flags ] )
         {
            g_iAdminLevel[ iPlayer ] = i;
            
            new szGiven[ 64 ], iLen, iGivenCount;
            
            new iHealth = g_eAdminData[ i ][ Admin_Health ];
            if( iHealth )
            {
               set_user_health( iPlayer, ( get_user_health( iPlayer ) + iHealth ) );
               
               iLen += formatex( szGiven[ iLen ], charsmax( szGiven ) - iLen, "%i Extra Health", iHealth );
               iGivenCount++
            }
            
            new iArmor = g_eAdminData[ i ][ Admin_Armor ];
            if( iArmor )
            {
               cs_set_user_armor( iPlayer, iArmor, CS_ARMOR_VESTHELM );
               
               iLen += formatex( szGiven[ iLen ], charsmax( szGiven ) - iLen, "%s%i Armor", iLen ? ", " : "", iArmor );
               iGivenCount++
            }
            
            new Float:flSpeed = Float:g_eAdminData[ i ][ Admin_Speed ];
            
            set_user_maxspeed( iPlayer, flSpeed );
            
            iLen += formatex( szGiven[ iLen ], charsmax( szGiven ) - iLen, "%s%i Speed", iLen ? ( iGivenCount == 1 ? " and " : ", and " ) : "", floatround( flSpeed ) );
            
            client_print( iPlayer, print_chat, "[AMXX] You were given %s!", szGiven );
            
            break;
         }
      }
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1033 f0 fs16 n par }
*/

Last edited by boyca; 11-25-2011 at 13:38.
boyca is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:23.


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