SA-MP Forums Archive
Trucker Ranks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Trucker Ranks (/showthread.php?tid=282743)



Trucker Ranks - Trucker[UK] - 12.09.2011

Hello People

Can someone help me with something

It is to make Trucker ranks for when you get a certain score you automatically get a new rank and a big of cash for it and every time you connect to the server it comes up with your Name then the Rank.

e.g.

[PLAYER] [RANK] [ID] Has Connected
[PLAYER] [ID] Has Left

Can anyone help it will be must appreciated and I want a command when you type /ranks it comes up this



Thanks


Re: Trucker Ranks - Kingunit - 12.09.2011

Something like this:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[Points] == 0) // Trucker Wannabe
    {
        // Join message etc.
    }
    else if(PlayerInfo[Points] == 1) // Rookie Trucker
    {
        // Join message etc.
    }
    else if(PlayerInfo[Points] == 2) // Trucker
    {
        // Join message etc.
    }
    else if(PlayerInfo[Points] == 3) // Respected Trucker
    {
        // Join message etc.
    }
   
    // Go on
    return 1;
}
100% this won't work. But it's something like that


Re: Trucker Ranks - Cameltoe - 12.09.2011

pawn Код:
switch(GetPlayerScore(playerid)) // PlayerScore[playerid] or w/e you like.
{
     case 1:
     {
           // Give new rank rookie trucker
     }
     case 1000:
     {
           // Give new rank transport tycoon
     }
}



Re: Trucker Ranks - Trucker[UK] - 12.09.2011

yh but i need it when you get to a certain score it announces that you have reached a new rank and it tells everyone else in the game that you have a new rank and it does it when you connect aswell



Like that above when people connect


Re: Trucker Ranks - Kingunit - 12.09.2011

Quote:
Originally Posted by Trucker[UK]
Посмотреть сообщение
yh but i need it when you get to a certain score it announces that you have reached a new rank and it tells everyone else in the game that you have a new rank and it does it when you connect aswell



Like that above when people connect
Seems you don't understand anything. You better post this into the 'Request Thread'