[FilterScript] EXP System
#1

This is one of my scripts i made for a friend then i decided to release it i will always update this and have more versions today 8/8/2011 i released version 3 of the script more advanced then the other versions enjoy.

V2 RELEASED]

V3 PIC:


V2 PIC:


V1 PIC:


V1 PIC 2:


Download:

V3
pawn Код:
//---Kittens EXP System v3---//

#include <a_samp>

new Text:BoxWhite;
new Text:Bar[MAX_PLAYERS];
new Text:EXP[MAX_PLAYERS];

forward UpdateTextDraw(playerid);

public OnFilterScriptInit() {
    BoxWhite = TextDrawCreate(230.000000, 392.000000, "~n~");
    TextDrawBackgroundColor(BoxWhite, 255);
    TextDrawFont(BoxWhite, 1);
    TextDrawLetterSize(BoxWhite, 0.500000, 1.000000);
    TextDrawColor(BoxWhite, -1);
    TextDrawSetOutline(BoxWhite, 0);
    TextDrawSetProportional(BoxWhite, 1);
    TextDrawSetShadow(BoxWhite, 1);
    TextDrawUseBox(BoxWhite, 1);
    TextDrawBoxColor(BoxWhite, -1);
    TextDrawTextSize(BoxWhite, 430.000000, -612.000000);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) {
        Bar[playerid] = TextDrawCreate(230.000000, 392.000000, "~n~");
        TextDrawBackgroundColor(Bar[playerid], 255);
        TextDrawFont(Bar[playerid], 1);
        TextDrawLetterSize(Bar[playerid], 0.359999, 1.000000);
        TextDrawColor(Bar[playerid], -1);
        TextDrawSetOutline(Bar[playerid], 0);
        TextDrawSetProportional(Bar[playerid], 1);
        TextDrawSetShadow(Bar[playerid], 1);
        TextDrawUseBox(Bar[playerid], 1);
        TextDrawBoxColor(Bar[playerid], 16777215);
        TextDrawTextSize(Bar[playerid], 225.000000, 0.000000);

        EXP[playerid] = TextDrawCreate(281.000000, 392.000000, "~b~EXP: 0/~g~50");
        TextDrawBackgroundColor(EXP[playerid], 255);
        TextDrawFont(EXP[playerid], 1);
        TextDrawLetterSize(EXP[playerid], 0.500000, 1.000000);
        TextDrawColor(EXP[playerid], -1);
        TextDrawSetOutline(EXP[playerid], 0);
        TextDrawSetProportional(EXP[playerid], 1);
        TextDrawSetShadow(EXP[playerid], 1);
    }
    return 1;
}

public OnFilterScriptExit() {
    TextDrawHideForAll(BoxWhite);
    TextDrawDestroy(BoxWhite);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) {
        TextDrawHideForAll(Bar[playerid]);
        TextDrawDestroy(Bar[playerid]);
        TextDrawHideForAll(EXP[playerid]);
        TextDrawDestroy(EXP[playerid]);
    }
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp("/testbar", cmdtext, true, 10) == 0) {
        TextDrawTextSize(Bar[playerid],229.0000, 0.000000 );
        UpdateTextDraw(playerid);
        return 1;
    }
    if (strcmp("/testbar2", cmdtext, true, 10) == 0) {
        UpdateTextDraw(playerid);
        TextDrawTextSize(Bar[playerid],265.0000, 0.000000 );
        TextDrawSetString(EXP[playerid],"~b~EXP: 8/50");
        return 1;
    }
    return 0;
}

public OnPlayerDeath(playerid, killerid, reason) {

    new string[64];
    new score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+1);
    format(string, sizeof(string),"~b~EXP: %d/~g~50",score+1);
    TextDrawSetString(EXP[killerid],string);
    GivePlayerMoney(killerid, 6000); // +6000$
   
    switch(score) {
        case 0: { TextDrawTextSize(Bar[playerid],229.0000, 0.000000 ); UpdateTextDraw(playerid); } // goes up by 5 and 4 :)
        case 1: { TextDrawTextSize(Bar[playerid],233.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 2: { TextDrawTextSize(Bar[playerid],236.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 3: { TextDrawTextSize(Bar[playerid],240.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 4: { TextDrawTextSize(Bar[playerid],245.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 5: { TextDrawTextSize(Bar[playerid],250.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 6: { TextDrawTextSize(Bar[playerid],255.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 7: { TextDrawTextSize(Bar[playerid],260.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 8: { TextDrawTextSize(Bar[playerid],265.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 9: { TextDrawTextSize(Bar[playerid],270.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 10: { TextDrawTextSize(Bar[playerid],275.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 11: { TextDrawTextSize(Bar[playerid],280.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 12: { TextDrawTextSize(Bar[playerid],285.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 13: { TextDrawTextSize(Bar[playerid],290.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 14: { TextDrawTextSize(Bar[playerid],295.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 15: { TextDrawTextSize(Bar[playerid],300.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 16: { TextDrawTextSize(Bar[playerid],305.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 17: { TextDrawTextSize(Bar[playerid],310.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 18: { TextDrawTextSize(Bar[playerid],315.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 19: { TextDrawTextSize(Bar[playerid],320.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 20: { TextDrawTextSize(Bar[playerid],325.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 21: { TextDrawTextSize(Bar[playerid],330.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 22: { TextDrawTextSize(Bar[playerid],340.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 23: { TextDrawTextSize(Bar[playerid],345.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 24: { TextDrawTextSize(Bar[playerid],350.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 25: { TextDrawTextSize(Bar[playerid],355.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 26: { TextDrawTextSize(Bar[playerid],360.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 27: { TextDrawTextSize(Bar[playerid],365.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 28: { TextDrawTextSize(Bar[playerid],370.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 29: { TextDrawTextSize(Bar[playerid],375.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 30: { TextDrawTextSize(Bar[playerid],380.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 31: { TextDrawTextSize(Bar[playerid],385.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 32: { TextDrawTextSize(Bar[playerid],390.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 33: { TextDrawTextSize(Bar[playerid],395.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 34: { TextDrawTextSize(Bar[playerid],400.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 35: { TextDrawTextSize(Bar[playerid],405.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 36: { TextDrawTextSize(Bar[playerid],410.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 37: { TextDrawTextSize(Bar[playerid],415.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 38: { TextDrawTextSize(Bar[playerid],420.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 39: { TextDrawTextSize(Bar[playerid],425.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 40: { TextDrawTextSize(Bar[playerid],430.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 41: { TextDrawTextSize(Bar[playerid],435.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 42: { TextDrawTextSize(Bar[playerid],440.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 43: { TextDrawTextSize(Bar[playerid],445.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 44: { TextDrawTextSize(Bar[playerid],450.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 45: { TextDrawTextSize(Bar[playerid],455.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 46: { TextDrawTextSize(Bar[playerid],460.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 47: { TextDrawTextSize(Bar[playerid],465.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 48: { TextDrawTextSize(Bar[playerid],470.0000, 0.000000 ); UpdateTextDraw(playerid); }
        case 49: { TextDrawTextSize(Bar[playerid],475.0000, 0.000000 ); UpdateTextDraw(playerid); }
    }
    return 1;
}

public UpdateTextDraw(playerid) {
    TextDrawHideForPlayer(playerid,Bar[playerid]);
    TextDrawShowForPlayer(playerid,Bar[playerid]);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, BoxWhite);
    TextDrawShowForPlayer(playerid, Bar[playerid]);
    TextDrawShowForPlayer(playerid, EXP[playerid]);
    return 1;
}
V2
pawn Код:
#include <a_samp>

new Text:EXPINFO;
new Text:Box;
new Text:Bar[MAX_PLAYERS];
new Text:Number[MAX_PLAYERS];

public OnFilterScriptInit()
{

    EXPINFO = TextDrawCreate(259.000000, 385.000000, "EXP SYSTEM");
    TextDrawBackgroundColor(EXPINFO, 255);
    TextDrawFont(EXPINFO, 1);
    TextDrawLetterSize(EXPINFO, 0.490000, 1.200000);
    TextDrawColor(EXPINFO, -16776961);
    TextDrawSetOutline(EXPINFO, 0);
    TextDrawSetProportional(EXPINFO, 1);
    TextDrawSetShadow(EXPINFO, 1);

    Box = TextDrawCreate(260.000000, 398.000000, "~n~");
    TextDrawBackgroundColor(Box, 255);
    TextDrawFont(Box, 1);
    TextDrawLetterSize(Box, 0.500000, 1.000000);
    TextDrawColor(Box, -1);
    TextDrawSetOutline(Box, 0);
    TextDrawSetProportional(Box, 1);
    TextDrawSetShadow(Box, 1);
    TextDrawUseBox(Box, 1);
    TextDrawBoxColor(Box, 3284530);
    TextDrawTextSize(Box, 355.000000, 0.000000);

    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        Bar[playerid] = TextDrawCreate(260.000000, 395.000000, "get a kill");
        TextDrawBackgroundColor(Bar[playerid], 255);
        TextDrawFont(Bar[playerid], 1);
        TextDrawLetterSize(Bar[playerid], 0.500000, 1.599999);
        TextDrawColor(Bar[playerid], -1);
        TextDrawSetOutline(Bar[playerid], 0);
        TextDrawSetProportional(Bar[playerid], 1);
        TextDrawSetShadow(Bar[playerid], 1);

        Number[playerid] = TextDrawCreate(286.000000, 397.000000, "0/~r~15");
        TextDrawBackgroundColor(Number[playerid], 255);
        TextDrawFont(Number[playerid], 1);
        TextDrawLetterSize(Number[playerid], 0.390000, 1.000000);
        TextDrawColor(Number[playerid], -1);
        TextDrawSetOutline(Number[playerid], 0);
        TextDrawSetProportional(Number[playerid], 1);
        TextDrawSetShadow(Number[playerid], 1);
    }

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, EXPINFO);
            TextDrawShowForPlayer(i, Box);
            TextDrawShowForPlayer(i, Bar[i]);
            TextDrawShowForPlayer(i, Number[i]);
        }
    }
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{

    new msg[64];
    new score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+1);
    format(msg, sizeof(msg),"XP: %d/50",score+1);
    TextDrawSetString(Number[killerid],msg);
    GivePlayerMoney(killerid, 12000);
    GameTextForPlayer(killerid, "~p~1+ ~w~EXP Experience! ~n~~g~+$12000!!",6000,4);

    switch(GetPlayerScore(killerid))
    {
        case 1:
        {
            TextDrawSetString(Bar[killerid],"~b~l");
            TextDrawSetString(Number[killerid],"~w~ 1/~r~15");
        }
        case 2:
        {
            TextDrawSetString(Bar[killerid],"~b~ll");
            TextDrawSetString(Number[killerid],"~w~ 2/~r~15");
        }
        case 3:
        {
            TextDrawSetString(Bar[killerid],"~b~lll");
            TextDrawSetString(Number[killerid],"~w~ 3/~r~15");
        }
        case 4:
        {
            TextDrawSetString(Bar[killerid],"~b~llll");
            TextDrawSetString(Number[killerid],"~w~ 4/~r~15");
        }
        case 5:
        {
            TextDrawSetString(Bar[killerid],"~b~lllll");
            TextDrawSetString(Number[killerid],"~w~ 5/~r~15");
        }
        case 6:
        {
            TextDrawSetString(Bar[killerid],"~b~llllll");
            TextDrawSetString(Number[killerid],"~w~ 6/~r~15");
        }
        case 7:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllll");
            TextDrawSetString(Number[killerid],"~w~ 7/~r~15");
        }
        case 8:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllll");
            TextDrawSetString(Number[killerid],"~w~ 8/~r~15");
        }
        case 9:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllll");
            TextDrawSetString(Number[killerid],"~w~ 9/~r~15");
        }
        case 10:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllll");
            TextDrawSetString(Number[killerid],"~w~ 10/~r~15");
        }
        case 11:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllll");
            TextDrawSetString(Number[killerid],"~w~ 11/~r~15");
        }
        case 12:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllll");
            TextDrawSetString(Number[killerid],"~w~ 12/~r~15");
        }
        case 13:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllll");
            TextDrawSetString(Number[killerid],"~w~ 13/~r~15");
        }
        case 14:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllllll");
            TextDrawSetString(Number[killerid],"~w~ 14/~r~15");
        }
        case 15:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllllll");
            TextDrawSetString(Number[killerid],"~w~ 15/~r~15");
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(EXPINFO);
    TextDrawDestroy(EXPINFO);
    TextDrawHideForAll(Box);
    TextDrawDestroy(Box);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        TextDrawHideForAll(Bar[playerid]);
        TextDrawDestroy(Bar[playerid]);
        TextDrawHideForAll(Number[playerid]);
        TextDrawDestroy(Number[playerid]);
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, EXPINFO);
    TextDrawShowForPlayer(playerid, Box);
    TextDrawShowForPlayer(playerid, Bar[playerid]);
    TextDrawShowForPlayer(playerid, Number[playerid]);
    return 1;
}
V1
pawn Код:
//////////////////////////////////////////////////
/////////////EXP Experience FS By Kitten///////////
/////////////////////////////////////////////////

#include <a_samp>
#define COLOR_GREEN 0x20B2AAAA
#include <a_samp>

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Bar[MAX_PLAYERS];
new Text:EXPNUM[MAX_PLAYERS];

public OnFilterScriptInit()
{

    Textdraw0 = TextDrawCreate(230.000000, 390.000000, "~n~");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 840829490);
    TextDrawTextSize(Textdraw0, 401.000000, 0.000000);

    Textdraw1 = TextDrawCreate(267.000000, 368.000000, "~r~ EXP");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.919999, 1.200000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);


    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        // exp number
        EXPNUM[playerid] = TextDrawCreate(274.000000, 378.000000, "~w~ 0/~r~20");
        TextDrawBackgroundColor(EXPNUM[playerid], 255);
        TextDrawFont(EXPNUM[playerid], 1);
        TextDrawLetterSize(EXPNUM[playerid], 0.500000, 1.100000);
        TextDrawColor(EXPNUM[playerid], -1);
        TextDrawSetOutline(EXPNUM[playerid], 0);
        TextDrawSetProportional(EXPNUM[playerid], 1);
        TextDrawSetShadow(EXPNUM[playerid], 1);
        //bar
        Bar[playerid] = TextDrawCreate(220.000000, 385.000000, "~b~ GET A KILL");
        TextDrawBackgroundColor(Bar[playerid], 255);
        TextDrawFont(Bar[playerid], 1);
        TextDrawLetterSize(Bar[playerid], 0.500000, 1.900000);
        TextDrawColor(Bar[playerid], -1);
        TextDrawSetOutline(Bar[playerid], 0);
        TextDrawSetProportional(Bar[playerid], 1);
        TextDrawSetShadow(Bar[playerid], 1);
    }

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
            TextDrawShowForPlayer(i, Textdraw1);
            TextDrawShowForPlayer(i, Bar[i]);
            TextDrawShowForPlayer(i, EXPNUM[i]);
        }
    }
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{

    new msg[64];
    new score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+1);
    format(msg, sizeof(msg),"XP: %d/50",score+1);
    TextDrawSetString(EXPNUM[killerid],msg);
    GivePlayerMoney(killerid, 12000);
    GameTextForPlayer(killerid, "~p~1+ ~w~EXP Experience! ~n~~g~+$12000!!",6000,4);

    switch(GetPlayerScore(killerid))
    {
        case 1:
        {
            TextDrawSetString(Bar[killerid],"~b~l");
            TextDrawSetString(EXPNUM[killerid],"~w~ 1/~r~20");
        }
        case 2:
        {
            TextDrawSetString(Bar[killerid],"~b~ll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 2/~r~20");
        }
        case 3:
        {
            TextDrawSetString(Bar[killerid],"~b~lll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 3/~r~20");
        }
        case 4:
        {
            TextDrawSetString(Bar[killerid],"~b~llll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 4/~r~20");
        }
        case 5:
        {
            TextDrawSetString(Bar[killerid],"~b~lllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 5/~r~20");
        }
        case 6:
        {
            TextDrawSetString(Bar[killerid],"~b~llllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 6/~r~20");
        }
        case 7:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 7/~r~20");
        }
        case 8:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 8/~r~20");
        }
        case 9:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 9/~r~20");
        }
        case 10:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 10/~r~20");
        }
        case 11:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 11/~r~20");
        }
        case 12:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 12/~r~20");
        }
        case 13:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 13/~r~20");
        }
        case 14:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 14/~r~20");
        }
        case 15:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 15/~r~20");
        }
        case 16:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 16/~r~20");
        }
        case 17:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 17/~r~20");
        }
        case 18:
        {
            TextDrawSetString(Bar[killerid],"~b~llllllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 18/~r~~20");
        }
        case 19:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 19/~r~20");
        }
        case 20:
        {
            TextDrawSetString(Bar[killerid],"~b~lllllllllllllllllllll");
            TextDrawSetString(EXPNUM[killerid],"~w~ 20/~r~20");
            new name[MAX_PLAYER_NAME], string[100];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "Player * %s Has been finshed with the EXP System ** Desert Eagle unlocked for him", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            GivePlayerWeapon(playerid,24,100);
            SetPlayerHealth(playerid,100.0);
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        TextDrawHideForAll(EXPNUM[playerid]);
        TextDrawDestroy(EXPNUM[playerid]);
        TextDrawHideForAll(Bar[playerid]);
        TextDrawDestroy(Bar[playerid]);
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Bar[playerid]);
    TextDrawShowForPlayer(playerid, EXPNUM[playerid]);
    return 1;
}
Reply
#2

good work, nice project for a start RP or DM mod!
Reply
#3

thanks
Reply
#4

Just What i needed, Thanks Kitten (i love the cat pic)
Reply
#5

thanks
Reply
#6

nice . would be epic if there was some level system in it too xD.. even though, its still niiice
Reply
#7

Awesome work
Reply
#8

Pr0 Scripter ! Ty
Reply
#9

Quote:
Originally Posted by FujiNNN
Посмотреть сообщение
good work, nice project for a start RP or DM mod!
How would this work for a RP Server? o_O

Anyways good job.I'm downloading (:
Reply
#10

Quote:
Originally Posted by Noss*
Посмотреть сообщение
How would this work for a RP Server? o_O

Anyways good job.I'm downloading (:
because some RP server need rank system but they dont got a EXP they can edit this like instead of a kill they can make it something for RP for a example You get your license ? in RP u get 1 bar if u lose ur license you lose the bar so u get what i mean?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)