[HELP] Can't show Skins
#1

whene i'm choosing a skin, i can't see anything (i don't see the skins and i can't use next i've only next/back )
but i've all my skins and their position in my GM:
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("ZombieMod");
	////Zombies Skin:------------33+230---------------------------------------
	AddPlayerClass(230,152.2746,-193.1488,5.0786,269.1425,0,0,0,0,0,0);
	AddPlayerClass(33,152.2746,-193.1488,5.0786,269.1425,0,0,0,0,0,0);
	//--------------------------------------------------------------//
	////Human Skin://///////////---291+43+299-------------------------------
	AddPlayerClass(291,291.8401,-195.1707,1.5781,94.3243,0,0,0,0,0,0);
	AddPlayerClass(43,291.8401,-195.1707,1.5781,94.3243,0,0,0,0,0,0);
	AddPlayerClass(299,289.9131,-149.1784,1.5781,24.5462,0,0,0,0,0,0);
	 //-----------S.T.A.R.S Skin:/--------285+287------------------//
	 AddPlayerClass(285,90.8979,-289.5444,1.5781,346.2233,0,0,0,0,0,0);
	 AddPlayerClass(287,90.8979,-289.5444,1.5781,346.2233,0,0,0,0,0,0);
	 //-------------U.C Skin:---294+295------------------------//
	 AddPlayerClass(294,21.9061,-242.7543,2.4126,2.3485,0,0,0,0,0,0);
     AddPlayerClass(295,21.9061,-242.7543,2.4126,2.3485,0,0,0,0,0,0);
	 
	 //----------Tyrant Skin:------217--------------//
	 AddPlayerClass(217,62.3146,-147.1891,0.7637,259.1159,0,0,0,0,0,0);
	 
	return 1;
}
Reply
#2

to show and choose a skin you need some things under OnPlayerRequestClass
find it here https://sampwiki.blast.hk/wiki/OnPlayerRequestClass

Heres an example;

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,2260.9995,-285.0844,64.4470);
    SetPlayerCameraPos(playerid,2261.4006,-288.7633,64.3798);//-1022.5175,944.6831,42.6563
    SetPlayerCameraLookAt(playerid,2261.5576,-285.6434,64.4228);//-1024.2277,944.4170,42.6563
    SetPlayerFacingAngle(playerid, 193.9833);//286.1379

    switch (classid) {

        case 7:
            {
                GameTextForPlayer(playerid, "~b~ Corrupt Cop", 1000, 3);
       
               
            }

        case 8:

            {
                GameTextForPlayer(playerid, "~b~ Corrupt Cop", 1000, 3);
       
               
            }
        //  else
        //  {
   
        //  }
 
}

    return 1;
}
Reply
#3

i've an error
Код:
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(110) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(119) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(139) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(148) : error 021: symbol already defined: "OnPlayerRequestClass"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(197) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\GAMEMO~1\ZOMBIE~1.PWN(348) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

It seems you got public OnplayerRequestClass 2 times in your gamemode delete one of them.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,2260.9995,-285.0844,64.4470);
    SetPlayerCameraPos(playerid,2261.4006,-288.7633,64.3798);
    SetPlayerCameraLookAt(playerid,2261.5576,-285.6434,64.4228);
    SetPlayerFacingAngle(playerid, 193.9833);
    return 1;
}
Reply
#5

it is working thank's!
Reply
#6

your welcome it wasnt so hard
Reply
#7

ok, now i need whene we change skin, it's marcked S.T.A.R.S .... HELP
Reply
#8

Look at my earlyer post with corrupt cop stuff in it..make it that way and replace " corrupt cop" into S.T.A.R.S
Reply
#9

ok But i need, whene player go to skin 33 and 230 it marcked ZOMBIE in red
i need that... for each skin= a writing
Reply
#10

HELP^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)