SA-MP Forums Archive
Need Help - 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)
+--- Thread: Need Help (/showthread.php?tid=347803)



Need Help - Raiden Dragneel - 03.06.2012

Hi, I couldn't find the list of all AddPlayerClass, can anyone help listing it from 1 to 299? Thank you.

Example:
pawn Код:
AddPlayerClass(1,-2720.4299,-318.8430,7.8438,48.9108,0,0,0,0,0,0);
AddPlayerClass(299,-2720.4299,-318.8430,7.8438,48.9108,0,0,0,0,0,0);



Re: Need Help - reh_007 - 03.06.2012

You mean cords? Of when you /save?


Re: Need Help - JaKe Elite - 03.06.2012

pawn Код:
for(new skinid = 0; skinid < 300; skinid++)
{
    if(IsValidSkin(skinid))
    {
      AddPlayerClass(skinid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    }
}

stock IsValidSkin(skinid) //put it somewhere
{
    if(skinid < 0 || skinid > 300) return false;
    switch(skinid)
    {
        case 74: return false;
    }
    return true;
}



Re: Need Help - Azazelo - 03.06.2012

https://sampwiki.blast.hk/wiki/Skins:All


Re: Need Help - reh_007 - 03.06.2012

If yes, then goto Documents/Gta sa user file/SAMP/Saved positions. this is for windows 7 and vista.


Re: Need Help - Raiden Dragneel - 03.06.2012

No, I need list of skin which has been set to AddPlayerClass(1-299,x,y,z,weapon,ammo,weapon,ammo);

From 1 to 299, it takes time for my to type from 1 to 299 so please I need all list which has been set to AddPlayerClass, thank you.

Edit: I'm doing a free roam for me and I'm not using ZCMD or other. I'm using the basic script.


Re: Need Help - Azazelo - 03.06.2012

Quote:

for(new skinid = 0; skinid < 300; skinid++)
{
if(skinid != 74)
{
//Just add some save
AddPlayerClass(skinid,-2720.4299,-318.8430,7.8438,48.9108,0,0,0,0,0,0);
}
}

and don`t be lazy ....


Re: Need Help - JaKe Elite - 03.06.2012

look at my post need quote here it is

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
for(new skinid = 0; skinid < 300; skinid++)
{
    if(IsValidSkin(skinid))
    {
      AddPlayerClass(skinid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    }
}

stock IsValidSkin(skinid) //put it somewhere
{
    if(skinid < 0 || skinid > 300) return false;
    switch(skinid)
    {
        case 74: return false;
    }
    return true;
}
it add all skin 0 up to 299 even the 0.3d skins.
Don't misread the post next time


Re: Need Help - Raiden Dragneel - 03.06.2012

Sorry, um.. Where do I put this? Under...?


Re: Need Help - JaKe Elite - 03.06.2012

pawn Код:
for(new skinid = 0; skinid < 300; skinid++) //put this OnGameModeInit
{
    if(IsValidSkin(skinid))
    {
      AddPlayerClass(skinid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    }
}

stock IsValidSkin(skinid) //put it on the bottom of script
{
    if(skinid < 0 || skinid > 300) return false;
    switch(skinid)
    {
        case 74: return false;
    }
    return true;
}