Raised This Month: $51 Target: $400
 12% 

New XP Mod tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-05-2010 , 07:02   Re: New XP Mod tutorial
Reply With Quote #201

Devil259, thanks, that will do

I came across another problem. I don't know how to assign pInfo[33][Class][Data] Class value. Umm.. pInfo[id][Class] = Cat ?
I'm trying this:
PHP Code:
public Class_Handle(id menu item
{
    if(
item == MENU_EXIT
    {
 
        
menu_destroy(menu);
 
    }
 
    new 
szCommand[6] , szName[64];
    new 
access callback;
 
    
menu_item_getinfo(menu item access szCommand szName 63 callback);
 
    new 
str_to_num(szCommand)
    if(
PlayerClass[id] != i)
    {
        
PlayerClass[id] = i
        client_print
(id,print_chat,"You have selected %s class.",CLASSES[i])
        
                
//Look here below.
        
switch(i)
        {
            case 
1pInfo[id][Class] = Dog
            
case 2pInfo[id][Class] = Bear 
            
case 3pInfo[id][Class] = Cat
        
}
    }
    else
    {
        
client_print(id,print_chat,"You are alredy a %s.",CLASSES[i])
    }
 
    
menu_destroy(menu);
    return 
PLUGIN_CONTINUE

t3hNox is offline
titanak
New Member
Join Date: Aug 2010
Old 08-11-2010 , 18:18   Re: New XP Mod tutorial
Reply With Quote #202

we can say . Mega failed TUT Topic for this.
titanak is offline
lashsh
BANNED
Join Date: Jun 2010
Location: Georgia, Tbilisi
Old 08-28-2010 , 14:14   Re: New XP Mod tutorial
Reply With Quote #203

XP title e.g 1 kill 10 XP, and 800 XP title serious player
XP

PHP Code:
0 XP 
100 XP 
200 XP 
400 XP 
800 XP 
1600 XP 
3200 XP 
Tittles

PHP Code:
0 XP lamer 
100 XP Beginner 
200 XP Amateur 
400 XP Professional 
800 XP Master 
1600 XP Igrok 
3200 XP Counter
-Strike Pather 
pleace give me this plugin or create

Last edited by lashsh; 08-28-2010 at 17:48.
lashsh is offline
Send a message via Skype™ to lashsh
qlail
Member
Join Date: Aug 2009
Old 09-01-2010 , 00:42   Re: New XP Mod tutorial
Reply With Quote #204

Quote:
Originally Posted by Particlman View Post
https://forums.alliedmods.net/showth...ighlight=spawn

I used the hamsandwich version to do this
PHP Code:
public fwHamPlayerSpawnPost(id) {
    if (
is_user_alive(id)) 
    {
        if (
PlayerClass[id] == 0)
        {
            
ChangeClass(id)
        }
    }

That way it is not only when they join but anytime they spawn if they haven't picked one yet
You should change

PHP Code:
//[...]
if(is_user_alive(id))
{
    if(
PlayerClass[id] == 0)
    {
         
ChangeClass(id)
     }
  } 
To....
PHP Code:
//[....]
if(is_user_alive(id))
{
    if(
PlayerClass[id] == CLASS_NONE)
    {
          
ChangeClass(id)
     }
  } 
qlail is offline
glhf3000
Member
Join Date: Aug 2010
Location: middle-universe
Old 09-30-2010 , 13:09   Re: New XP Mod tutorial
Reply With Quote #205

Thanks for tutorial!
I've used it as base for my private Zombie XP plugin
glhf3000 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 10-03-2010 , 06:35   Re: New XP Mod tutorial
Reply With Quote #206

Compile Error with original Code
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 10-05-2010 , 21:38   Re: New XP Mod tutorial
Reply With Quote #207

This is an example, try to make by yourself.
__________________
albert123 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-06-2010 , 12:31   Re: New XP Mod tutorial
Reply With Quote #208

Quote:
Originally Posted by [ru]In1ernal Error View Post
Thanks for tutorial!
I've used it as base for my private Zombie XP plugin
This is retard example to make a XP Mod for zp..
Vechta is offline
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: Espaņa
Old 04-19-2011 , 08:56   Re: New XP Mod tutorial
Reply With Quote #209

Hello. Someone knows because it levels up, Get xp but not enough to go up, always on level 0 with 7000 xp
AlgoChikitito is offline
Mirun.Frontier
Member
Join Date: Aug 2008
Old 04-25-2011 , 00:05   Re: New XP Mod tutorial
Reply With Quote #210

Quote:
Originally Posted by AlgoChikitito View Post
Hello. Someone knows because it levels up, Get xp but not enough to go up, always on level 0 with 7000 xp
I don't understand your post, can you make it a bit clearer?
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c
Mirun.Frontier is offline
Reply



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 17:54.


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