How to add all sa-mp skins to OnPlayerRequestClass
#1

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?
Reply
#2

look at lvdm gm and paste all AddPlayerClass to Ongamemodeinit
Reply
#3

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);
}
}
Reply
#4

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.
}
Reply
#5

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

Use the code from The_Moddler and put it under OnGameModeInit
Reply
#7

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!
Reply
#8

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
Reply
#9

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
Reply
#10

i = the playerid but dont change that

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


Forum Jump:


Users browsing this thread: 1 Guest(s)