SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Why when choosing skin, the skin doesnt show ? (https://forum.sa-mp.com/showthread.php?t=460405)

bustern 28/08/2013 02:18 PM

Why when choosing skin, the skin doesnt show ?
 
So i added 2 skins, but they dont show when player is choosing skins....
My code:
PHP Code:

public OnGameModeInit()
{

    
AddPlayerClass(105,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Grove Street Gang Member (0)
    
AddPlayerClass(280,1544.0514,-1675.7766,13.5577,98.0974,0,0,0,0,0,0); //Police Officer (1)
    
return 1;


Photoe: http://dragit.eu/up/nH3KjJyF.png

Wizza 28/08/2013 02:24 PM

Re: Why when choosing skin, the skin doesnt show ?
 
Try this
pawn Code:
public OnGameModeInit()
{
    AddPlayerClass(105,2497.2693,-1676.9578,13.3398,23.6501,-1,-1,-1,-1,-1,-1); //Grove Street Gang Member (0)
    AddPlayerClass(280,1544.0514,-1675.7766,13.5577,98.0974,-1,-1,-1,-1,-1,-1); //Police Officer (1)
    return 1;
}

Konstantinos 28/08/2013 02:25 PM

Re: Why when choosing skin, the skin doesnt show ?
 
The problem is in OnPlayerRequestClass callback. Change the coordinates and camera's look.

Useful: [FS] OnPlayerRequestClass Maker by RyDeR`


Quote:

Originally Posted by Wizza (Post 2674082)
Try this
pawn Code:
public OnGameModeInit()
{
    AddPlayerClass(105,2497.2693,-1676.9578,13.3398,23.6501,-1,-1,-1,-1,-1,-1); //Grove Street Gang Member (0)
    AddPlayerClass(280,1544.0514,-1675.7766,13.5577,98.0974,-1,-1,-1,-1,-1,-1); //Police Officer (1)
    return 1;
}

How the weapons can be the problem? I'm curious!

bustern 28/08/2013 02:37 PM

Re: Why when choosing skin, the skin doesnt show ?
 
Thx you Konstantinos !+rep for you

Wizza 28/08/2013 02:54 PM

Re: Why when choosing skin, the skin doesnt show ?
 
Quote:

Originally Posted by Konstantinos (Post 2674084)
How the weapons can be the problem? I'm curious!

Most of the time the weapons are the problem.


All times are GMT. The time now is 09:01 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.