Advertisement
KAKAN

...

Apr 22nd, 2017
775
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local skin_team = {
  2.     "2": "Team 1 - Swat",
  3.     "3": "Team 1",
  4.     "4": "Grupo 1",
  5.     "102": "Team 2",
  6.     "103": "Team 2 undercover #2",
  7.     "104": "Team 2 undercover #3",
  8.     "117": "Team 3",
  9.     "143": "Team 3",
  10.     "157": "Team 3 Chica #3",
  11.     "180": "Team 4 Vercitti #1",
  12.     "147": "Team 4 Vercitti #2",
  13.     "146": "Team 4 Vercitti #3",
  14.     //.... Continue doing it.
  15.     "77": "Team 8"
  16. }
  17.  
  18. function onScriptLoad(){
  19.     //Your addclasses.
  20. }
  21.  
  22. function onPlayerRequestClass( player, classID, team, skin ){
  23.     //Check the docs. Its been many days since I last touched Squirrel.
  24.     local rawin = skin_team.rawin( skin.tostring() );
  25.     if( rawin ){
  26.         Announce( skin_team[ skin.tostring() ], player, 6 );
  27.         player.SetAnim(28,231);
  28.         PlaySound( player.UniqueWorld , 335 , player.Pos );
  29.     }
  30.     //This ain't needed!
  31.     //Make sure you add all the skins to
  32.     //the table or you'll get this announcement.
  33.     else Announce("Select your skin, mf.",player,6);
  34. }
  35. // http://forum.vc-mp.org/?topic=4557.0
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement