Thanks, I solved the first problem, but here is a new one:
I added a lot of skins by two loops, but I can't see them at class selection. It spawns properly if I press the Spawn button, but I can only see the button bar before I spawn.
I add the skins here under OnGameModeInit:
pawn Код:
for(new i = 0; i < sizeof(FerfiAlapSkin); i++)
{
AddPlayerClass(FerfiAlapSkin[i][0], 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
}
for(new i = 0; i < sizeof(NoiAlapSkin); i++)
{
AddPlayerClass(NoiAlapSkin[i][0], 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
}
And this is my OnPlayerRequestClass part:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 1);
if(GetPVarInt(playerid, "Nem") == 1)
{
if(GetPVarInt(playerid, "Szervezet") == 1)
{
}
else
{
if(GetPlayerSkin(playerid) != FerfiAlapSkin[138][0])
{
rand = random(sizeof(FerfiAlapSkin));
SetPlayerSkin(playerid, FerfiAlapSkin[rand][0]);
}
}
}
else
{
if(GetPVarInt(playerid, "Szervezet") == 1)
{
}
else
{
if(GetPlayerSkin(playerid) != NoiAlapSkin[32][0])
{
rand = random(sizeof(NoiAlapSkin));
SetPlayerSkin(playerid, NoiAlapSkin[rand][0]);
}
}
}
return 1;
}
And I have two long lists at the top of the script that contain the skins you can choose if you are a male or if you are a female. Why can't I see my skins at selection?