SA-MP Forums Archive
How to add all sa-mp skins to OnPlayerRequestClass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to add all sa-mp skins to OnPlayerRequestClass (/showthread.php?tid=186579)



How to add all sa-mp skins to OnPlayerRequestClass - ZamaXor - 29.10.2010

I want to use all sa-mp skins in my gamemode. When player connect to the server he can list all sa-mp skins and choose 1 and spawn somewhere.How?


Re: How to add all sa-mp skins to OnPlayerRequestClass - iJumbo - 29.10.2010

look at lvdm gm and paste all AddPlayerClass to Ongamemodeinit


Re: How to add all sa-mp skins to OnPlayerRequestClass - boelie - 29.10.2010

if we would want every skin add this under ongamemodeinit;
for(new i = 0; i < 299; i++)
{
switch(i)
{
case (3,4,5,6,8,42,65,74,86,119,149,208,268,273,289): continue;
default: AddPlayerClass(i,DIALOGLOC);
}
}


Re: How to add all sa-mp skins to OnPlayerRequestClass - The_Moddler - 29.10.2010

pawn Код:
for(new i = 0; i < 287; i++)
{
    AddPlayerClass(i, x, y, z, 0, 0, 0, 0, 0, 0); //Replace x, y, z to your coordinates.
}



Re: How to add all sa-mp skins to OnPlayerRequestClass - ireny - 17.02.2011

I don't understand please give me an exact example please!


Re: How to add all sa-mp skins to OnPlayerRequestClass - OldDirtyBastard - 17.02.2011

Use the code from The_Moddler and put it under OnGameModeInit


Re: How to add all sa-mp skins to OnPlayerRequestClass - ireny - 17.02.2011

what is The_Moddler please!! Give me a link pls,i want to add some skins of gangs in my SV!! Please!
or a SS PLEASEEE!


Re: How to add all sa-mp skins to OnPlayerRequestClass - Sascha - 17.02.2011

dude... "The_Modeler" is the guy that replied 2 posts above your's...
add this:
pawn Код:
for(new i = 0; i < 287; i++)
{
    AddPlayerClass(i, x, y, z, 0, 0, 0, 0, 0, 0); //Replace x, y, z to your coordinates.
}
below OnGameModeInit() in your script


Re: How to add all sa-mp skins to OnPlayerRequestClass - ireny - 17.02.2011

ohh srry and thx I want to try
but:
i x y x what is it?
or i add under that anotehr AddPlayerClass ID and etc


Re: How to add all sa-mp skins to OnPlayerRequestClass - boelie - 17.02.2011

i = the playerid but dont change that

x,y,z the coords you want them to spawn ( get it yourself ingame with /save)