Moin liebe Brotfische
ich habe ein problem undzwar ich habe teams erstell undzwar so
Code
#define Team_Grove 0 // Erste Fraktion
#define Team_Ballas 1 // Zweite Fraktion
#define Team_Rifa 2
#define Team_Vagos 3
#define Team_RM 4
#define Team_Triaden 5
#define Team_Yakuza 6
#define Team_LSPD 7
#define Team_LVPD 8
danach hab ich die skins eingefügt
Code
public OnGameModeInit()
{
SetGameModeText("Selfmade script by snappulse");
AddPlayerClass(105,2494.9187,-1686.9929,13.5143,3.2586,24,100,25,100,30,200); // GroveSpawn
AddPlayerClass(106,2494.9187,-1686.9929,13.5143,3.2586,24,100,25,100,30,200); // GroveSpawn
AddPlayerClass(107,2494.9187,-1686.9929,13.5143,3.2586,24,100,25,100,30,200); // GroveSpawn
AddPlayerClass(102,2000.1733,-1121.3142,26.7369,180.4268,24,100,25,100,30,200); // BallasSpawn
AddPlayerClass(103,2000.1733,-1121.3142,26.7369,180.4268,24,100,25,100,30,200); // BallasSpawn
AddPlayerClass(104,2000.1733,-1121.3142,26.7369,180.4268,24,100,25,100,30,200); // BallasSpawn
AddPlayerClass(114,2780.1472,-1924.7394,13.5469,95.8639,24,100,25,100,30,200); // Rifa
AddPlayerClass(115,2780.1472,-1924.7394,13.5469,95.8639,24,100,25,100,30,200); // Rifa
AddPlayerClass(116,2780.1472,-1924.7394,13.5469,95.8639,24,100,25,100,30,200); // Rifa
AddPlayerClass(108,1676.4503,-2119.4880,13.5469,318.5719,24,100,25,100,30,200); // LSVAGOS
AddPlayerClass(109,1676.4503,-2119.4880,13.5469,318.5719,24,100,25,100,30,200); // LSVAGOS
AddPlayerClass(110,1676.4503,-2119.4880,13.5469,318.5719,24,100,25,100,30,200); // LSVAGOS
AddPlayerClass(111,685.6830,-1275.9055,13.5595,90.0165,24,100,25,100,30,200); // RM
AddPlayerClass(112,685.6830,-1275.9055,13.5595,90.0165,24,100,25,100,30,200); // RM
AddPlayerClass(113,685.6830,-1275.9055,13.5595,90.0165,24,100,25,100,30,200); // RM
AddPlayerClass(117,2193.5596,1677.0972,12.3672,89.4401,24,100,25,100,30,200); // Triaden
AddPlayerClass(118,2193.5596,1677.0972,12.3672,89.4401,24,100,25,100,30,200); // Triaden
AddPlayerClass(120,2193.5596,1677.0972,12.3672,89.4401,24,100,25,100,30,200); // Triaden
AddPlayerClass(123,2622.5901,1824.2460,11.0234,90.4757,24,100,25,100,30,200); // Yakuza
AddPlayerClass(203,2622.5901,1824.2460,11.0234,90.4757,24,100,25,100,30,200); // Yakuza
AddPlayerClass(204,2622.5901,1824.2460,11.0234,90.4757,24,100,25,100,30,200); // Yakuza
AddPlayerClass(280,1546.6356,-1675.6779,13.5627,89.3413,24,100,25,100,31,200); // LSPD
AddPlayerClass(281,1546.6356,-1675.6779,13.5627,89.3413,24,100,25,100,31,200); // LSPD
AddPlayerClass(166,1546.6356,-1675.6779,13.5627,89.3413,24,100,25,100,31,200); // LSPD
AddPlayerClass(282,2295.0220,2451.0454,10.8203,91.2929,24,100,25,100,31,200); // LVPD
AddPlayerClass(283,2295.0220,2451.0454,10.8203,91.2929,24,100,25,100,31,200); // LVPD
AddPlayerClass(288,2295.0220,2451.0454,10.8203,91.2929,24,100,25,100,31,200); // LVPD
return 1;
}
Alles anzeigen
und dann irgendwas mit switch und case so wie es in einem tut erklärt wurde
Code
switch(classid)
{
case 0,1,2: gTeam[playerid] = Team_Grove;
case 3,4,5: gTeam[playerid] = Team_Ballas;
case 6,7,8: gTeam[playerid] = Team_Rifa;
case 9,10,11: gTeam[playerid] = Team_Vagos;
case 12,13,14: gTeam[playerid] = Team_RM;
case 15,16,17: gTeam[playerid] = Team_Triaden;
case 18,19,20: gTeam[playerid] = Team_Yakuza;
case 21,22,23: gTeam[playerid] = Team_LSPD;
default: gTeam[playerid] = Team_LVPD;
Alles anzeigen
er meinte da irgendwas mit skins
und dann ein befehl
Code
if(strcmp("/vagosbase", cmdtext, true) == 0)
{
if(gTeam[playerid] == Team_Vagos)
{
SetPlayerPos(playerid,1676.4503,-2119.4880,13.5469,318.5719,24);
SendClientMessage(playerid,0x00FF00FF, " Du hast dich zu deinem Spawn teleportiert");
}
else
{
SendClientMessage(playerid,0xFF0000FF,"Du bist kein Vagos");
}
return 1;
}
Alles anzeigen
Mein problem ist nun wenn ich einen vagos skin habe kann ich mich nicht zu meiner base porten ich hab es mit jedem skin versucht aber die meldung "Du bist kein Vagos" kommt trozdem