29.10.2012, 19:50
(
Последний раз редактировалось Private200; 04.11.2012 в 18:26.
)
I was boured so i made a rank system for trucking / roleplay servers .
Some credits goes to : [HiC]TheKiller for his textdraw tutorial
It is really easy to use
Hope you like it
Here codes are :
PasteBin code :
After the update of the script in the forum , i was unable to update it on PasteBin . will update it soon!
Advanced Rank system has been relased . Here link is for all who wanna check it out
Thanks
Some credits goes to : [HiC]TheKiller for his textdraw tutorial

It is really easy to use

Hope you like it
Here codes are :
pawn Код:
/* Don't remove credits !!
Made by Private200
Hope it helps you!!
*/
#include <a_samp>
new Text:Textdraw2;
new rank[ MAX_PLAYERS ];
new TRank[150];
public OnFilterScriptInit()
{
Textdraw2 = TextDrawCreate(390.000000, 0.000000, "Rank:~r~");
TextDrawBackgroundColor(Textdraw2, 16711935);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.570000, 2.700000);
TextDrawColor(Textdraw2, 65535);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
return 1;
}
public OnPlayerSpawn( playerid )
{
TextDrawShowForPlayer( playerid, Textdraw2 );
return 1;
}
public OnPlayerUpdate( playerid )
{
new string[ 128 ];
if(GetPlayerScore(playerid) >= 1000)
{
rank[ playerid ] = 6;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 700)
{
rank[ playerid ] = 5;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 500)
{
rank[ playerid ] = 4;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 200)
{
rank[ playerid ] = 3;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 100)
{
rank[ playerid ] = 2;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 50)
{
rank[ playerid ] = 1;
TRank = " "; /// The rank name
}
else if(GetPlayerScore(playerid) >= 0)
{
rank[ playerid ] = 0;
TRank = " "; /// The rank name
}
format( string, sizeof string, "Rank:~r~ %d ~y~Rank:~w~ %s", rank[ playerid ],TRank);
TextDrawSetString( Textdraw2, string );
return 1;
}
After the update of the script in the forum , i was unable to update it on PasteBin . will update it soon!
Advanced Rank system has been relased . Here link is for all who wanna check it out

Thanks