Raised This Month: $32 Target: $400
 8% 

Starting Powerlevel


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Earth's Special Forces        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-18-2009 , 13:39   Starting Powerlevel
Reply With Quote #1

Description:
With this plugin you can set the starting (first spawn) powerlevel for each class, whether only admins can be given that powerlevel or any player.
The starting powerlevel will be set whenever you choose new class (or the same as you are now).
CVARs:
  • spl <1|0> - enables/disables plugin;
  • spl_[class] <powerlevel> - sets starting powerlevel for specific class;
    • classes:
      • buu;
      • goku;
      • gohan;
      • krillin;
      • frieza;
      • piccolo;
      • trunks;
      • vegeta;
      • cell;
    • example usage:
      • spl_goku 1750000
      • spl_vegeta 99999999
  • spl_admin <1|0> - enables/disables starting powerlevel for admins only.
Requirements:
  • Brains;
  • Earth's Special Forces 1.2.3;
  • AMX Mod X 1.8.0+.
Notes:
  • Sets CVAR "mp_plcatchup" to 0.
  • Current PLs for each class are set so you could transform instantly.
Attached Files
File Type: sma Get Plugin or Get Source (startingpl.sma - 2728 views - 2.0 KB)
__________________

Last edited by hleV; 04-18-2009 at 15:32. Reason: Fixed some typo.
hleV is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-18-2009 , 13:54   Re: Starting Powerlevel
Reply With Quote #2

haha this is awesome +k
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 04-18-2009 , 13:59   Re: Starting Powerlevel
Reply With Quote #3

owned
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Old 04-18-2009, 14:48
tuty
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 15:00
DruGzOG
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 15:02
hleV
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 15:10
mando127
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 15:18
DruGzOG
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 15:29
hleV
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 16:27
tuty
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 17:30
mando127
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 17:41
DruGzOG
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 17:43
hleV
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-18-2009, 17:56
joaquimandrade
This message has been deleted by YamiKaitou. Reason: spam/off-topic
Old 04-19-2009, 02:34
tuty
This message has been deleted by YamiKaitou. Reason: spam/off-topic
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 04-19-2009 , 03:06   Re: Starting Powerlevel
Reply With Quote #4

Good job
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
Old 04-19-2009, 05:53
hleV
This message has been deleted by YamiKaitou. Reason: spam/off-topic
newertas
New Member
Join Date: Jul 2009
Old 07-15-2009 , 04:23   Re: Starting Powerlevel
Reply With Quote #5

How to add this plugin to my server?
newertas is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-15-2009 , 06:51   Re: Starting Powerlevel
Reply With Quote #6

By reading the documentation on how to install a plugin.
__________________
Arkshine is offline
Diegons49
Junior Member
Join Date: Dec 2007
Old 04-03-2010 , 11:35   Re: Starting Powerlevel
Reply With Quote #7

To add more classes just add the class in this part of the plugin?

Thank you.


Quote:
public plugin_init()
{
register_plugin("Starting Powerlevel", "1.0", "hleV");
g_StartingPL[0] = register_cvar("spl", "1");
g_StartingPL[Class_Buu] = register_cvar("spl_buu", "3000000");
g_StartingPL[Class_Goku] = register_cvar("spl_goku", "1750000");
g_StartingPL[Class_Gohan] = register_cvar("spl_gohan", "1000000");
g_StartingPL[Class_Krillin] = register_cvar("spl_krillin", "3000000");
g_StartingPL[Class_Frieza] = register_cvar("spl_frieza", "1800000");
g_StartingPL[Class_Piccolo] = register_cvar("spl_piccolo", "1650000");
g_StartingPL[Class_Trunks] = register_cvar("spl_trunks", "1000000");
g_StartingPL[Class_Vegeta] = register_cvar("spl_vegeta", "2000000");
g_StartingPL[Class_Cell] = register_cvar("spl_cell", "1900000");
g_StartingPL[10] = register_cvar("spl_admin", "0");

for (new Cmd = 0; Cmd < sizeof(g_ClassChangeCmds); Cmd++)
register_clcmd(g_ClassChangeCmds[Cmd], "ClassChange");

RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1);
}
For example, if I want to add the plugin to the A17, the line referring to it would be like this?

Quote:
g_StartingPL[Class_A17] = register_cvar("spl_a17", "XXXXXXX");

Last edited by Diegons49; 04-03-2010 at 11:41.
Diegons49 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-03-2010 , 13:49   Re: Starting Powerlevel
Reply With Quote #8

There are no such class in ESF. If you're using ECX or some other plugin which adds more classes, you'll have to find a way to make this plugin compatible with it yourself.
__________________
hleV is offline
Diegons49
Junior Member
Join Date: Dec 2007
Old 04-03-2010 , 17:27   Re: Starting Powerlevel
Reply With Quote #9

Quote:
Originally Posted by hleV View Post
There are no such class in ESF. If you're using ECX or some other plugin which adds more classes, you'll have to find a way to make this plugin compatible with it yourself.
Got it, thanks for the reply.
Diegons49 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 07:01.


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