Array für die Skins
new StaatSkins[]=
{
280,
281,
282,
283,
284,
285,
286,
287,
288
};
new TerrorSkins[]=
{
294,
299,
252,
249,
242,
144,
156,
220
};
RequestClass
public OnPlayerRequestClass(playerid, classid)
{
if(Gang[playerid] == 1)
{
SetPlayerPos(playerid,1546.0334,-1675.7340,13.5615);
SetPlayerFacingAngle(playerid,183.1239);
SetPlayerCameraPos(playerid,1537.0334,-1675.7340,13.5615);
SetPlayerCameraLookAt(playerid,1540.0334,-1675.7340,13.5615);
}
if(Gang[playerid] == 2)
{
SetPlayerPos(playerid,1415.9867,-1648.4072,13.3828);
SetPlayerFacingAngle(playerid,183.1239);
SetPlayerCameraPos(playerid,1410.9867,-1648.4072,13.3828);
SetPlayerCameraLookAt(playerid,1410.9867,-1648.4072,13.3828);
}
if(Gang[playerid] == 0)
{
SetPlayerInterior(playerid,0);
SetSpawnInfo(playerid,0,29,1777.862,-1952.163,13.160,0,0,0,0,0,0,0);
SpielerSpeichern(playerid);
SpawnPlayer(playerid);
}
return 1;
}
Moin, wie kann ich die Skins aus dem Array z.b. nur für Gang[playerid] == 1 sichtbar machen?
MFG