15.05.2010, 00:39
Defines
Code:
#define TEAM_COP 1 // this defines the team for the cop class #define TEAM_ARMY 2 // this defines the team for the army class
Add Player Class
Code:
AddPlayerClass(280,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(246,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // female citycop AddPlayerClass(282,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(281,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(280,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(284,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(283,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop AddPlayerClass(165,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // fbi AddPlayerClass(121,2941.0012,468.3174,21.6395,49.3062,24,50,30,500,34,20); // army AddPlayerClass(163,1899.3256,962.4217,10.8203,178.9707,23,100,25,50,0,0); // casino security spawn AddPlayerClass(73,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // plain clothes AddPlayerClass(71,1337.5198,1279.3478,10.8203,144.4931,3,1,22,50,29,500); // air cops AddPlayerClass(71,2293.8950,543.3351,1.7944,182.4626,3,1,22,50,29,500); // marine unit new AddPlayerClass(288,2343.2703,2454.1113,14.9742,95.8794,3,1,0,0,0,0); // jail turnkey AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2 AddPlayerClass(50,2006.1929,2295.9451,10.8203,177.4306,22,50,0,0,0,0); // mechanic spawn AddPlayerClass(167,2076.5696,2223.5557,10.8203,189.4515,5,1,22,50,0,0); // bistro spawn AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female AddPlayerClass(104,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0); // civil skin AddPlayerClass(106,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin AddPlayerClass(115,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin AddPlayerClass(109,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi AddPlayerClass(120,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin AddPlayerClass(138,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi AddPlayerClass(140,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin AddPlayerClass(147,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin AddPlayerClass(141,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin AddPlayerClass(169,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin AddPlayerClass(186,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin AddPlayerClass(217,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin AddPlayerClass(226,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin AddPlayerClass(249,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin AddPlayerClass(257,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin AddPlayerClass(292,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin AddPlayerClass(293,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin AddPlayerClass(298,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin AddPlayerClass(296,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(294,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(178,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(152,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(124,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(125,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(113,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(92,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(93,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(87,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(85,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(55,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(63,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(64,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(69,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(70,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(68,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(73,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(76,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(83,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(88,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(95,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(91,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(97,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(98,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin AddPlayerClass(100,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin
Team Class
Code:
//sets the skin for the team that you choose (team= TEAM_ARMY, TEAM_COP, etc.) SetPlayerTeamFromClass(playerid, classid) { if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 10 || classid == 11 || classid == 12) { //these are the class id's gTeam[playerid] = TEAM_COP; } else if(classid == 8) { //sets class id 8 as TEAM_COP (u can make a skin thats a normal person be a cop so that there are undercover cops) gTeam[playerid] = TEAM_ARMY; } else if(classid == 9) { } }
Set Cop class so u need 20+ points to use. And Army 150+ points.
Code:
if (gTeam[playerid] == TEAM_COP && GetPlayerScore(playerid) <= 20) //checks if the skin u choose is a TEAM_COP skin and checks if u have 20 or more points { GameTextForPlayer(playerid,"~r~You need at least 20 points to be a cop!",5000,3); // gametext if you dont have 20+ points return 0; } if (gTeam[playerid] == TEAM_ARMY && GetPlayerScore(playerid) <= 150) //you can change the required point amount by changing 150 to whatever amount of points u want it to have { GameTextForPlayer(playerid,"~r~You need at least 150 points to join the army!",5000,3); //gametext if you dont have 150+ points return 0; } return 1; }
If you still don't get it or need any help, please post here. (if u want a example of it join 178.32.95.124:7777 and try picking cop or army class)
VIDEO SHOWING WHAT IT DOES