[HELP] Can't show Skins -
ServerScripter - 04.07.2011
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;
}
Re: [HELP] Can't show Skins -
boelie - 04.07.2011
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;
}
Re : [HELP] Can't show Skins -
ServerScripter - 04.07.2011
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.
Re: [HELP] Can't show Skins -
boelie - 04.07.2011
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;
}
Re : [HELP] Can't show Skins -
ServerScripter - 04.07.2011
it is working thank's!
Re: [HELP] Can't show Skins -
boelie - 04.07.2011
your welcome it wasnt so hard
Re : [HELP] Can't show Skins -
ServerScripter - 04.07.2011
ok, now i need whene we change skin, it's marcked S.T.A.R.S .... HELP
Re: [HELP] Can't show Skins -
boelie - 04.07.2011
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
Re : [HELP] Can't show Skins -
ServerScripter - 04.07.2011
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
Re : [HELP] Can't show Skins -
ServerScripter - 04.07.2011
HELP^^