[FilterScript] MRSH rank system with prefix
#1


MRSH SYSTEMS
Name: ShRank System [with prefix]
A simple rank system with prefix!

Download: http://pastebin.com/rRMN7UUT

you cant access pastebin? here you are!
pawn Код:
#include <a_samp>

stock GetName(playerid)
{
    new Name[MAX_PLAYER_NAME];
    if(IsPlayerConnected(playerid))
    {
        GetPlayerName(playerid, Name, sizeof(Name));
    }
    return Name;
}
public OnPlayerText(playerid, text[])
{
    if((GetPlayerScore(playerid) >= 0) && (GetPlayerScore(playerid) <= 100))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Corporal]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 100) && (GetPlayerScore(playerid) <= 300))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Lieutenant]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 300) && (GetPlayerScore(playerid) <= 500))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Major]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 500) && (GetPlayerScore(playerid) <= 1000))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Captain]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 1000) && (GetPlayerScore(playerid) <= 1500))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Commander]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 1500) && (GetPlayerScore(playerid) <= 2000))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[General]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 2000) && (GetPlayerScore(playerid) <= 2500))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Brigadier]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 2500) && (GetPlayerScore(playerid) <= 5000))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Field Marshall]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 5000) && (GetPlayerScore(playerid) <= 10000))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[Master of Wars]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
    if((GetPlayerScore(playerid) >= 10000) && (GetPlayerScore(playerid) <= 9999999))
    {
        new string[175];
        format(string,sizeof(string), "{F5E618}[General of Army]{FFFFFF} %s: {FFFFFF}%s",GetName(playerid),text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
}
Reply


Messages In This Thread
MRSH: ShRank System [with prefix] - by mrsh - 10.03.2014, 16:09
Re: MRSH rank system with prefix - by Hax0rm - 10.03.2014, 16:42
Re: MRSH rank system with prefix - by Pottus - 10.03.2014, 17:34
Re: MRSH rank system with prefix - by mrsh - 14.03.2014, 11:47
Re: MRSH rank system with prefix - by amirab - 15.03.2014, 08:32
Re: MRSH rank system with prefix - by mrsh - 15.03.2014, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)