Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RankGained( player )
- {
- local kills = status[ player.ID ].Kills,a;
- switch ( kills )
- {
- case "1":
- ServerMessage("[FIRST KILL] - " + player.Name + " has reached a new achievement, rank up: Private I" );
- SendMessage( "Congratulations, you gained a rank for killing 1 player, reward: $1000, +10XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 10;
- IncCash( player, 1000 );
- break;
- case "5":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Private II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $2000, +20XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 20;
- IncCash( player, 2000 );
- break;
- case "10":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Private III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $3000, +30XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 30;
- IncCash( player, 3000 );
- break;
- case "200":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $4000, +40XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 40;
- IncCash( player, 4000 );
- break;
- case "300":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $5000, +50XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 50;
- IncCash( player, 5000 );
- break;
- case "400":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $6000, +60XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 60;
- IncCash( player, 6000 );
- break;
- case "500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $7000, +70XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 70;
- IncCash( player, 7000 );
- break;
- case "600":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $8000, +80XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 80;
- IncCash( player, 8000 );
- break;
- case "700":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $9000, +90XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 90;
- IncCash( player, 9000 );
- break;
- case "800":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $10000, +100XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 100;
- IncCash( player, 10000 );
- break;
- case "900":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $11000, +110XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 110;
- IncCash( player, 11000 );
- break;
- case "1000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $12000, +120XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 120;
- IncCash( player, 12000 );
- break;
- case "1200":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $13000, +130XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 130;
- IncCash( player, 13000 );
- break;
- case "1400":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $14000, +140XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 140;
- IncCash( player, 14000 );
- break;
- case "1600":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $15000, +150XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 150;
- IncCash( player, 15000 );
- break;
- case "1800":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $16000, +160XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 160;
- IncCash( player, 16000 );
- break;
- case "2000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $17000, +17XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 170;
- IncCash( player, 17000 );
- break;
- case "2200":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $18000, +180XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 180;
- IncCash( player, 18000 );
- break;
- case "2400":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $19000, +190XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 190;
- IncCash( player, 19000 );
- break;
- case "2600":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $20000, +200XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 200;
- IncCash( player, 20000 );
- break;
- case "2800":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $22000, +210XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 210;
- IncCash( player, 22000 );
- break;
- case "3000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $25000, +220XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 220;
- IncCash( player, 25000 );
- break;
- case "3200":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $27000, +230XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 230;
- IncCash( player, 27000 );
- break;
- case "3400":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $30000, +240XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 240;
- IncCash( player, 30000 );
- break;
- case "3700":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $37000, +250XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 250;
- IncCash( player, 37000 );
- break;
- case "4000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $40000, +260XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 260;
- IncCash( player, 40000 );
- break;
- case "4300":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $43000, +270XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 270;
- IncCash( player, 43000 );
- break;
- case "4650":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Captain I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $46000, +280XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 280;
- IncCash( player, 46000 );
- break;
- case "5000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Captain II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $50000, +290XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 290;
- IncCash( player, 50000 );
- break;
- case "5500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Captain III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $55000, +300XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 300;
- IncCash( player, 55000 );
- break;
- case "6000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $60000, +310XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 310;
- IncCash( player, 60000 );
- break;
- case "6500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $65000, +320XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 320;
- IncCash( player, 65000 );
- break;
- case "7000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $70000, +330XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 330;
- IncCash( player, 70000 );
- break;
- case "7500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $75000, +340XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 340;
- IncCash( player, 75000 );
- break;
- case "8000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $80000, +350XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 350;
- IncCash( player, 80000 );
- break;
- case "8500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $85000, +360XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 360;
- IncCash( player, 85000 );
- break;
- case "9000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $90000, +370XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 370;
- IncCash( player, 90000 );
- break;
- case "9500":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $95000, +380XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 380;
- IncCash( player, 95000 );
- break;
- case "10000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $100000, +390XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 390;
- IncCash( player, 100000 );
- break;
- case "11000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $110000, +400XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 400;
- IncCash( player, 110000 );
- break;
- case "12000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $120000, +420XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 420;
- IncCash( player, 120000 );
- break;
- case "13000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $130000, +440XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 440;
- IncCash( player, 130000 );
- break;
- case "14000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major General I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $140000, +460XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 460;
- IncCash( player, 140000 );
- break;
- case "15000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major General II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $150000, +470XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 470;
- IncCash( player, 150000 );
- break;
- case "16000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Major General III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $160000, +480XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 480;
- IncCash( player, 160000 );
- break;
- case "18000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General I" );
- SendMessage( "Congratulations, you gained a new rank, reward: $180000, +500XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 500;
- IncCash( player, 180000 );
- break;
- case "20000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General II" );
- SendMessage( "Congratulations, you gained a new rank, reward: $200000, +525XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 525;
- IncCash( player, 200000 );
- break;
- case "22000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General III" );
- SendMessage( "Congratulations, you gained a new rank, reward: $220000, +550XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 550;
- IncCash( player, 220000 );
- break;
- case "25000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: General" );
- SendMessage( "Congratulations, you gained a new rank, reward: $250000, +600XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 600;
- IncCash( player, 250000 );
- break;
- case "30000":
- ServerMessage( player.Name + " has reached a new achievement, rank up: Commander" );
- SendMessage( "Congratulations, you gained a new rank, reward: $300000, +1000XP", player );
- status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 1000;
- IncCash( player, 300000 );
- break;
- }
- }
Add Comment
Please, Sign In to add comment