Need Help with AddPlayerClass ( 0.3b )
#1

Hello, i am making a 0.3b server because of GTA United.
I am having issues with invalid player skins since all other skins were added in 0.3d.
More about issue:
Every invalid player id skin is CJ + I won't define them each their line....
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 300; i++)
    {
        if(i != 3 || i != 4 || i !=5 || i != 6 || i != 42 || i != 65 || i != 86 || i != 119 || i != 149 || i != 208 || i != 273 || i != 289)
        {
        AddPlayerClass(i,-2112.9053,1089.2894,11.2992,268.5916,0,0,0,0,0,0); // spawn
        }
    }
return 1;
}
Thank you.
Reply
#2

Heres a List of Skin id :https://sampwiki.blast.hk/wiki/Skins:All

and if u need to add skin id just see here for example :
https://sampwiki.blast.hk/wiki/AddPlayerClass

Enjoy and replace i in AddPlayerClass with skin id !!!
Reply
#3

Quote:
Originally Posted by Avi57
Посмотреть сообщение
Heres a List of Skin id :https://sampwiki.blast.hk/wiki/Skins:All

and if u need to add skin id just see here for example :
https://sampwiki.blast.hk/wiki/AddPlayerClass

Enjoy and replace i in AddPlayerClass with skin id !!!
I WON'T DEFINE THEM EACH! so i use for loop. But invalid skins are as CJ'S why? i checked if it isn't then skip it...
Anyways, thanks for your comment which didn't helped me....
Reply
#4

*BUMP* Sorry for bump but i really need help with this + I won't define ids each in same line so, just explain me why is it eaven getting me CJ in id's which i have defined as invalid?
Thanks.
Reply
#5

*Bump Again* YAY I've fixed it...
pawn Код:
for(new i = 0; i < 300; i++)
    {
        if(i == 3 || i == 4 || i ==5 || i == 6 || i == 8 || i == 42 || i == 65 || i == 86 || i == 119 || i == 149 || i == 208 || i == 273 || i == 289)
        {
        continue;
        } else {
        AddPlayerClass(i,-2112.9053,1089.2894,11.2992,268.5916,0,0,0,0,0,0); // spawn
        }
    }
now it jumps over invalid skins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)