Sign in to follow this  
Infinitas

dynamic text on spawn

2 posts in this topic

 

I've been working on trying to get this to work for far too long now. I had this working in an older version of exile but i cannot seem to get this working.

Basically what I'm trying to do it make dynamictext show on the screen depending on what the players respect is, when the player re-spawns. I have this

Spoiler

 

uiSleep 2;
_respect = ExileClientPlayerScore;

switch (true) do 
{
    case (_respect > 2500 && _respect < 4999):
    {
    _rank = "Enforcer";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Enforcer %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 5,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;

    };
    
    case (_respect > 5000 && _respect < 9999):
   {
     _rank = "Slayer";     
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Slayer %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 10,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 9999 && _respect < 19999):
   {
    _rank = "Hit Man";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Hit Man %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 20,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 19999 && _respect < 29999):
   {
    _rank = "Executioner";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Executioner %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 30,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 29999 && _respect < 39999):
   {

    _rank = "Tyrant";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Tyrant %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 40,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 39999 && _respect < 49999):
   {
    _rank = "Triggerman";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Triggerman %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 500,00 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 49999 && _respect < 69999):
   {
    _rank = "Trooper";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Trooper %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 70,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
    case (_respect > 69999 && _respect < 89999):
   {
    _rank = "High Executioner";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings High Executioner %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 90,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
   
     case (_respect > 89999 && _respect < 149999):
   {

    _rank = "Reaper";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Reaper %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 150,000 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };

     case (_respect > 149999):
   {
    _rank = "Supreme Overlord";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Supreme Overlord %2! Your Rank is %1</t><br/>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
   };
    default
    {    
    _rank = "Scrub";  
     [parseText format["<t size='0.6'font='OrbitronLight'>Greetings Scrub %2! Your Rank is %1</t><br/><t size='0.5'font='OrbitronLight'>You need to earn 2,500 respect for the next rank!</t>",_rank,name player],0,0,10,0] spawn bis_fnc_dynamictext;
    };
};

 

in a custom folder. Now im using execVM "Custom\ranks.sqf"; in ExileClient_object_player_bambiStateBegin.

I've also trying to use this in

ExileServer_object_player_network_createPlayerRequest

ExileServer_object_player_createBambi and ExileClient_object_player_bambiStateBegin 

but i cannot seem to get this work at all. What am i doing wrong? Any help is appreciated. 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.