Thread: XP Mod 1.2.4
View Single Post
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-19-2011 , 17:57   Re: XP Mod 1.0.0
Reply With Quote #8

Quote:
Originally Posted by Stereo View Post
Cool.

You can add a shop and:

XP_per_he - Amount xp gained per grenade kill
oh yes thx will add the grenade kill

Quote:
Originally Posted by plowed View Post
PHP Code:
public PlayerSpawn(id)
{
    if(
BombPlanted)
    {
    
BombPlanted false;    
    }
    if(!
is_user_bot(id) && is_user_connected(id)){
    if (
PlayerLevel[id] == 0) {
    
set_user_health(id100);
    
set_user_armor(id100);
    }
    if (
PlayerLevel[id] == 1) {
    
set_user_health(id110);
    
set_user_armor(id110);
    }
    if (
PlayerLevel[id] == 2) {
    
set_user_health(id120);
    
set_user_armor(id120);
    }
    if (
PlayerLevel[id] == 3) {
    
set_user_health(id130);
    
set_user_armor(id130);
    }
    if (
PlayerLevel[id] == 4) {
    
set_user_health(id140);
    
set_user_armor(id140);
        }
    if (
PlayerLevel[id] == 5) {
    
set_user_health(id150);
    
set_user_armor(id150);
        }
    if (
PlayerLevel[id] == 6) {
    
set_user_health(id160);
    
set_user_armor(id160);
        }
    if (
PlayerLevel[id] == 7) {
    
set_user_health(id170);
    
set_user_armor(id170);
        }
    if (
PlayerLevel[id] == 8) {
    
set_user_health(id180);
    
set_user_armor(id180);
        }
    if (
PlayerLevel[id] == 9) {
    
set_user_health(id190);
    
set_user_armor(id190);
        }
    if (
PlayerLevel[id] == 10) {
    
set_user_health(id200);
    
set_user_armor(id200);
        }
        }
    } 
->

PHP Code:
public PlayerSpawn(id)
{
    if(
BombPlanted)
    {
    
BombPlanted false;    
    }
    if(!
is_user_bot(id) && is_user_connected(id)){
    if (
PlayerLevel[id] == 0) {
    
set_user_health(id100);
    
set_user_armor(id100);
}
else {
    new 
bonus PlayerLevel[id] * 10
    set_user_health
(idbonus)
    
set_user_health(idbonus)
          }
        }
    } 
added thx will give you creadits
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare