26.02.2009, 09:17
Hey all, i am busy with a class script but i am noob so i often need your help..
Nou everything supposed to work fine.. but now CJ keeps showing up as class 21 and 26 ?!
Here is the code of the classes:
Now i think that i didn't put CJ somewhere !?
Ohyeah here is the code gametextforplayer stuff :P because of that cj keeps jumpin in this aint right anymore either.. ( i dont know if it has to do with it.. )
Nou everything supposed to work fine.. but now CJ keeps showing up as class 21 and 26 ?!
Here is the code of the classes:
Код:
AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police Chef AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agents Leader AddPlayerClass(113, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra Leader AddPlayerClass(294, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman Leader AddPlayerClass(123, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys Leader AddPlayerClass(227, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Mayor // Faction Classes // Police AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 2 AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 3 AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 4 AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 5 // Federal Agents AddPlayerClass(163, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 1 AddPlayerClass(164, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 2 AddPlayerClass(165, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 3 AddPlayerClass(166, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 4 // La Costra Nostra AddPlayerClass(111, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 1 AddPlayerClass(124, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 2 AddPlayerClass(125, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 3 AddPlayerClass(126, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 4 // Hitman AddPlayerClass(117, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 1 AddPlayerClass(118, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 2 AddPlayerClass(119, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 3 AddPlayerClass(98, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 4 // Da Nang Boys AddPlayerClass(120, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 1 AddPlayerClass(121, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 2 AddPlayerClass(122, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 2
Ohyeah here is the code gametextforplayer stuff :P because of that cj keeps jumpin in this aint right anymore either.. ( i dont know if it has to do with it.. )
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); switch(classid) { // Leaders case 0: GameTextForPlayer(playerid, "Police Chef", 1000, 6); case 1: GameTextForPlayer(playerid, "Federal Agents - Leader", 1000, 6); case 2: GameTextForPlayer(playerid, "La Costra Nostra - Leader", 1000, 6); case 3: GameTextForPlayer(playerid, "Hitman - Leader", 1000, 6); case 4: GameTextForPlayer(playerid, "Da Nang Boys - Leader", 1000, 6); case 5: GameTextForPlayer(playerid, "Mayor", 1000, 6); // Police case 6..9: GameTextForPlayer(playerid, "Police", 1000, 4); // Federal agents case 10..13: GameTextForPlayer(playerid, "Federal Agents", 1000, 4); // La Costra Nostra case 14..17: GameTextForPlayer(playerid, "La Costra Nostra Family", 1000, 4); // Hitman case 18..21: GameTextForPlayer(playerid, "Hitman", 1000, 4); // Da Nang Boys case 22..24: GameTextForPlayer(playerid, "Da Nang Boys", 1000, 4); // Civilians default: GameTextForPlayer(playerid, "Civilian", 1000, 4); } return 1;