Hello all!
Lenne megint egy problémám most az, h gTeam et használok és ugy csináltam, h van a groove ballas stb.
és ezeknek megcsináltam a spawnot minden scapatnak külön helyre fegyverek ... és az a bajom h vlamiért a többi skinre is vonatkozik pedig jól csináltam szal a banda skinekkel nincs baj amik a teamben benne vannak de ha már oylan skin választok ami nicsn benne egyik csapatba sem azt valamiért ugy érzekeli v nemtom , mintha bennelenne egy másik csapatba XD
mutatom mit csináltam:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_GROOVE;
GameTextForPlayer(playerid, \"~g~Groove Street\", 3000, 6);
}
case 1:
{
gTeam[playerid] = TEAM_GROOVE;
GameTextForPlayer(playerid, \"~g~Groove Street\", 3000, 6);
}
case 2:
{
gTeam[playerid] = TEAM_GROOVE;
GameTextForPlayer(playerid, \"~g~Groove Street\", 3000, 6);
}
case 3:
{
gTeam[playerid] = TEAM_BALLAS;
GameTextForPlayer(playerid, \"~p~ballas\", 3000, 6);
}
case 4:
{
gTeam[playerid] = TEAM_BALLAS;
GameTextForPlayer(playerid, \"~p~ballas\", 3000, 6);
}
case 5:
{
gTeam[playerid] = TEAM_BALLAS;
GameTextForPlayer(playerid, \"~p~ballas\", 3000, 6);
}
case 6:
{
gTeam[playerid] = TEAM_ASTECAS;
GameTextForPlayer(playerid, \"~b~~b~~b~Astecas\", 3000, 6);
}
case 7:
{
gTeam[playerid] = TEAM_ASTECAS;
GameTextForPlayer(playerid, \"~b~~b~~b~Astecas\", 3000, 6);
}
case 8:
{
gTeam[playerid] = TEAM_ASTECAS;
GameTextForPlayer(playerid, \"~b~~b~~b~Astecas\", 3000, 6);
}
case 9:
{
gTeam[playerid] = TEAM_VAGOS;
GameTextForPlayer(playerid, \"~y~vagos\", 3000, 6);
}
case 10:
{
gTeam[playerid] = TEAM_VAGOS;
GameTextForPlayer(playerid, \"~y~vagos\", 3000, 6);
}
case 11:
{
gTeam[playerid] = TEAM_VAGOS;
GameTextForPlayer(playerid, \"~y~vagos\", 3000, 6);
}
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_GROOVE)
{
new rand = random(sizeof(GrooveRandomSpawn));
SetPlayerPos(playerid, GrooveRandomSpawn[rand][0], GrooveRandomSpawn[rand][1],GrooveRandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, GrooveRandomSpawn[rand][3]);
GivePlayerWeapon(playerid, 32, 2000);
GivePlayerWeapon(playerid, 41, 3000);
}
else if(gTeam[playerid] == TEAM_BALLAS)
{
new rand = random(sizeof(BallasRandomSpawn));
SetPlayerPos(playerid, BallasRandomSpawn[rand][0], BallasRandomSpawn[rand][1],BallasRandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, BallasRandomSpawn[rand][3]);
GivePlayerWeapon(playerid, 28, 3000);
GivePlayerWeapon(playerid, 22, 1800);
}
else if(gTeam[playerid] == TEAM_ASTECAS)
{
new rand = random(sizeof(AstecasRandomSpawn));
SetPlayerPos(playerid, AstecasRandomSpawn[rand][0], AstecasRandomSpawn[rand][1],AstecasRandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, AstecasRandomSpawn[rand][3]);
GivePlayerWeapon(playerid, 18, 70);
GivePlayerWeapon(playerid, 22, 1300);
}
else if(gTeam[playerid] == TEAM_VAGOS)
{
new rand = random(sizeof(VagosRandomSpawn));
SetPlayerPos(playerid, VagosRandomSpawn[rand][0], VagosRandomSpawn[rand]
[1],VagosRandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, VagosRandomSpawn[rand][3]);
GivePlayerWeapon(playerid, 30, 3000);
GivePlayerWeapon(playerid, 29, 1500);
}
return 1;
}
na szzóval ha valaki tudja h más skint mért \"veszi\" ugy mitn atöbbit az plz segítsen