pawn Код:
new bool: InCar[MAX_PLAYERS];
public OnGameModeInit()
{
AddPlayerClass(293,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 0
AddPlayerClass(299,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 1
AddPlayerClass(298,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 2
AddPlayerClass(297,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // 3
AddPlayerClass(104,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Ballas 3 - 4
AddPlayerClass(103,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // Ballas 2 - 5
AddPlayerClass(102,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Ballas 1 - 6
AddPlayerClass(107,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Grove 3 - 7
AddPlayerClass(106,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // Grove 2 - 8
AddPlayerClass(105,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Grove 1 - 9
AddPlayerClass(296,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 4
AddPlayerClass(295,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 5
AddPlayerClass(294,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 6
AddPlayerClass(292,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 7
AddPlayerClass(291,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 8
AddPlayerClass(290,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 9
AddPlayerClass(288,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 10
AddPlayerClass(287,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 11
AddPlayerClass(286,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 12
AddPlayerClass(285,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 13
AddPlayerClass(284,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 14
AddPlayerClass(283,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 15
AddPlayerClass(282,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 16
AddPlayerClass(281,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 17
AddPlayerClass(280,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 18
AddPlayerClass(279,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 19
AddPlayerClass(278,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 20
AddPlayerClass(276,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 21
AddPlayerClass(274,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 22
AddPlayerClass(272,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 2
AddPlayerClass(271,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(270,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(269,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(268,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(267,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(266,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(265,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(264,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(258,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(256,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(255,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(252,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(250,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(249,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(248,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(247,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(241,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(240,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(233,2119.5608,1233.0441,10.8203,89.3993,0,0,0,0,0,0); // OG LOC
AddPlayerClass(223,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(221,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(217,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(212,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(209,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(205,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(204,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(203,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(197,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(195,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(186,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(185,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(184,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(181,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(180,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(179,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(178,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(175,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(174,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(173,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(167,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(165,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(162,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(156,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(154,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(143,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(127,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(126,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(125,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(124,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(123,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(122,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(121,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(120,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(118,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(117,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(116,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(115,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(114,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(113,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(112,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(111,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(110,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(109,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(108,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(101,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(100,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(99,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(82,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(81,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(70,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(67,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(62,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(51,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(50,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
AddPlayerClass(49,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(41,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(29,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(28,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(26,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(25,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(24,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(23,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(22,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(21,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(20,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(19,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(7,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(0,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(1,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
AddPlayerClass(2,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
return 1;
}
SetupPlayerForClassSelection(playerid)
{
InCar[playerid] = false;
SetPlayerPos(playerid,1103.3688,-827.0107,114.4477);
SetPlayerFacingAngle(playerid, 60);
SetPlayerCameraPos(playerid,1099.5803,-822.9796,114.4477);
SetPlayerCameraLookAt(playerid,1101.4971,-825.1699,114.4477);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
SetupPlayerForClassSelection(playerid);
return 1;
}