Guten Tag, ich wollte in mein Script eine 3. Gang, die Grove Street einbauen.
Alles klappt mit den Skins etc, jedoch spawnen diese an der Triaden Base.
//Yakuza AddPlayerClass(186, -2462.8484, 132.6171, 35.1719, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(122, -2462.8484, 132.6171, 35.1719, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(123, -2462.8484, 132.6171, 35.1719, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(224, -2462.8484, 132.6171, 35.1719, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(228, -2462.8484, 132.6171, 35.1719, 0, 0, 0, 0, 0, 0, 0);
//Triaden AddPlayerClass(117, -2719.7712, -318.7074, 7.8438, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(120, -2719.7712, -318.7074, 7.8438, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(169, -2719.7712, -318.7074, 7.8438, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(203, -2719.7712, -318.7074, 7.8438, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(294, -2719.7712, -318.7074, 7.8438, 0, 0, 0, 0, 0, 0, 0); //GSF AddPlayerClass(105, -2119.6999, -195.0000, 35.0000, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(106, -2119.6999, -195.0000, 35.0000, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(107, -2119.6999, -195.0000, 35.0000, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(269, -2119.6999, -195.0000, 35.0000, 0, 0, 0, 0, 0, 0, 0); AddPlayerClass(271, -2119.6999, -195.0000, 35.0000, 0, 0, 0, 0, 0, 0, 0);
Also die GSF Skins spawnen nicht an den Koordinaten, wo angegeben, sondern an den Triadenspawns
Vllt kann man das auch noch brauchen
public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, 487.9458, -5.9515, 1002.0867); SetPlayerFacingAngle(playerid, 180); SetPlayerInterior(playerid, 17); SetPlayerCameraPos(playerid, 487.8283, -11.4869, 1001.7832); SetPlayerCameraLookAt(playerid, 487.8446, -10.4885, 1001.7479); switch(classid) { case 0,1,2,3,4: Team[playerid] = 1; default: Team[playerid] = 0; }
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4) { SetPlayerColor(playerid, COLOR_GREY); GameTextForPlayer(playerid, "~w~Yakuza", 1500, 6); } else if(classid == 5 || classid == 6 || classid == 7 || classid == 8 || classid == 9) { SetPlayerColor(playerid, COLOR_BLUE); GameTextForPlayer(playerid, "~b~Triaden", 1500, 6); } else if(classid == 10 || classid == 11 || classid == 12 || classid == 13 || classid == 14) { SetPlayerColor(playerid, COLOR_GSF); GameTextForPlayer(playerid, "~g~Grove Street", 1500, 6); } return 1;}