Need little help
#1

Hello. I'll be direct.

I need and example of how to make a level system based on experience(points)
example: if a player reached X amount of experience he goes to another level and so on.

I just need a little example.

I'll just give you another example:
Convoy Trucking(not advertising) have a thing like this..if you reach 100 truck missions you go from "Rookie Trucker" to "Respected Trucker", i hope you know what i mean..
Reply
#2

What is your saving system? and can you show us your variables being used to save the player info?
Reply
#3

I use BUD[ Blazing User Database ] by Slice.

It is not needed, i just wanna know how to do it, just show me an example with any variables, i can change them later..
Reply
#4

Just make it so each delivery he gains X amount of expirience then make a repeating timer that checks if a player has enough expirience and if he does then it increases his level by one.
Reply
#5

I made this:
Код:
new  Bit1: AdvancedDrifter <MAX_PLAYERS>,
	Bit1: ProDrifter <MAX_PLAYERS>,
	Bit1: MasterDrifter <MAX_PLAYERS>,
	Bit1: DriftKing <MAX_PLAYERS>;

public OnPlayerUpdate(playerid)
{
   	if( Bit1_Get( AdvancedDrifter, playerid ) == 0 )
	{
		if( Bit16_Get( TotalScore, playerid ) > 1000 )
		{
	 		SetPlayerDriftTitle( "Advanced Drifter");
	 		if( rText_Viewing( playerid ) )
    		rText_Update( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Advanced Drifter!", true, 5 );
			else
    		rText_Show( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Advanced Drifter!", 5);
	    	Bit1_Set( AdvancedDrifter , playerid, 1 );
		}
	}
	if( Bit1_Get( ProDrifter, playerid ) == 0 )
	{
		if( Bit16_Get( TotalScore, playerid ) > 100000 )
		{
	 		SetPlayerDriftTitle( "Pro Drifter");
	 		if( rText_Viewing( playerid ) )
    		rText_Update( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Pro Drifter!", true, 5 );
			else
    		rText_Show( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Pro Drifter!", 5);
	    	Bit1_Set( ProDrifter , playerid, 1 );
		}
	}
	if( Bit1_Get( MasterDrifter, playerid ) == 0 )
	{
		if( Bit16_Get( TotalScore, playerid ) > 500000 )
		{
	 		SetPlayerDriftTitle( "Master Drifter");
	 		if( rText_Viewing( playerid ) )
    		rText_Update( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Master Drifter!", true, 5 );
			else
    		rText_Show( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Master Drifter!", 5);
	    	Bit1_Set( MasterDrifter , playerid, 1 );
		}
	}
	if( Bit1_Get( DriftKing, playerid ) == 0 )
	{
		if( Bit16_Get( TotalScore, playerid ) > 1000000 )
		{
	 		SetPlayerDriftTitle( "Drift King");
	 		if( rText_Viewing( playerid ) )
    		rText_Update( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Drift King!", true, 5 );
			else
    		rText_Show( playerid, "~w~Congratulations! You have more than 50.000 Drift Points and you gain a new rank ~r~Drift King!", 5);
	    	Bit1_Set( DriftKing , playerid, 1 );
		}
	}
    return 1;
}
stock SetPlayerDriftTitle( title[ ] )
{
	format( DriftTitle, sizeof( DriftTitle ), "%s", title );
	
	return 1;
}
For me it works fine but for another player doesen't work..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)