pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0://Cops
{
SetPlayerPos(playerid,2234.3474,2453.6912,10.7959);
SetPlayerFacingAngle(playerid,86.4894);
SetPlayerCameraPos(playerid,2225.1477,2454.6123,10.8518);
SetPlayerCameraLookAt(playerid,2234.3474,2453.6912,10.7959);
AddPlayerClass(280, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(281, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(282, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(283, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(288, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(284, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(285, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(286, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(266, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(265, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
AddPlayerClass(267, 2238.6213,2449.1658,11.0372,267.5461,0,0,0,0,0,0);
}
case 1://Business Men
{
SetPlayerPos(playerid,2546.8213,1960.8640,10.8203);
SetPlayerFacingAngle(playerid,173.7571);
SetPlayerCameraPos(playerid,2547.7056,1953.9175,10.6719);
SetPlayerCameraLookAt(playerid,2546.8213,1960.8640,10.8203);
AddPlayerClass(165, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(147, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(153, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(68, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(187, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(57, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(17, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(186, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(227, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(228, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(59, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
AddPlayerClass(272, 2545.9734,1961.1101,10.8203,182.5916,0,0,0,0,0,0);
}
case 2://Food workers
{
SetPlayerPos(playerid,2454.8945,2031.9691,11.0625);
SetPlayerFacingAngle(playerid,89.3710);
SetPlayerCameraPos(playerid,2450.0510,2029.9642,10.8203);
SetPlayerCameraLookAt(playerid,2454.8945,2031.9691,11.0625);
AddPlayerClass(167,1893.5752,2072.7683,10.8203,261.6602,0,0,0,0,0,0);
AddPlayerClass(155,1893.5752,2072.7683,10.8203,261.6602,0,0,0,0,0,0);
AddPlayerClass(205,1893.5752,2072.7683,10.8203,261.6602,0,0,0,0,0,0);
AddPlayerClass(209,1893.5752,2072.7683,10.8203,261.6602,0,0,0,0,0,0);
AddPlayerClass(168,1893.5752,2072.7683,10.8203,261.6602,0,0,0,0,0,0);
}
case 3://Drug Dealers
{
SetPlayerPos(playerid,2003.0640,1548.3395,13.5859);
SetPlayerFacingAngle(playerid,208.9245);
SetPlayerCameraPos(playerid,2001.5880,1543.6865,13.5859);
SetPlayerCameraLookAt(playerid,2003.0640,1548.3395,13.5859);
AddPlayerClass(28,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(21,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(29,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(30,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(143,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(22,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
AddPlayerClass(19,2001.2102,1539.3051,13.5859,317.1115,0,0,0,0,0,0);
}
case 4://Civillian
{
SetPlayerPos(playerid,2440.6196,2157.6396,10.8203);
SetPlayerFacingAngle(playerid,184.4906);
SetPlayerCameraPos(playerid,2440.8223,2151.2437,10.6719);
SetPlayerCameraLookAt(playerid,2440.6196,2157.6396,10.8203);
AddPlayerClass(10,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(101,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(12,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(13,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(136,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(14,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(142,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(15,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(151,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(170,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(182,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(54,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(184,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(263,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(185,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(188,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(20,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(206,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(210,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(220,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(222,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(231,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(24,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(25,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(250,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(23,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(44,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(7,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(1,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(48,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(47,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(67,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(72,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
AddPlayerClass(98,2439.6106,2157.8442,10.8203,176.8998,0,0,0,0,0,0);
}
}
return 1;
}
But,only one cop is on the cop selection screen,all others are randomly on other teams.WTF?
and so does other teams,randomly on others class selection,what am i doing wrong D:
if i'm doing AddPlayerClass under "OnGameModeInit" its just all on one selection screen