• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fix dark skin issue on SAMP class selection in pawn?
#1
Question 
Hello Everyone,
? ? ? ? ? ? ? ? ? ? ? ? ? ?I'm working on a SAMP server using pawn language, but I've started facing an issue since I started work on SAMP player skin selection class. The issue is when a player request's a class all skins becomes darker.

Code:
#include <a_samp>

main() {

}

public OnGameModeInit() {
    SetWeather(10);
    SetWorldTime(12);
    AddPlayerClass(1, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(2, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(3, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid, -1479.434082, 920.448730, 71.350372);
    SetPlayerFacingAngle(playerid, 288.652161);
    SetPlayerCameraPos(playerid, -1474.420288, 922.672607, 72.009903);
    SetPlayerCameraLookAt(playerid, -1475.333984, 922.266418, 71.999748);
    return 1;
}

Screenshot Of The Issue:
[Image: ApgJX.jpg]

Screenshot Of The Expected Results:
[Image: 23ttM.jpg]

As you can see in the first screenshot the player skin is darker then normal.

What I have tried:?
I have tried rearranging the code, like calling SetPlayerCameraPos() before SetPlayerPos().
I have also tried using a timer to add a delay before setting player pos and camera pos.
I have also tried using TogglePlayerSpectating()?method to make sure every things gets loaded with player's camera.
But still same result.

If you know any solution for this problem please share.

Thank You,
  Reply


Messages In This Thread
How to fix dark skin issue on SAMP class selection in pawn? - by goldprince - 2021-02-14, 04:28 PM

Forum Jump: