Wysłany: 2013-12-22, 22:52
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
hmmm pisze gamemoda i jestem na etapie wybiera?ki skin?w
zrobi?em takie texdrawy z funkcj? TEXT_DRAW_FONT_MODEL_PREVIEW
wszystko jest okej ale nie mam poj?cia jak to oskryptowa? pr?bowa?em juz w
Kod: public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == textdraw)
{
TextDrawHideForPlayer(playerid, textdraw);
TextDrawHideForPlayer(playerid, textdraw2);
TextDrawHideForPlayer(playerid, textdraw3);
TextDrawHideForPlayer(playerid, textdraw4);
TextDrawHideForPlayer(playerid, textdraw5);
TextDrawHideForPlayer(playerid, textdraw6);
TextDrawHideForPlayer(playerid, textdraw7);
TextDrawHideForPlayer(playerid, textdraw8);
TextDrawHideForPlayer(playerid, textdraw9);
SetPlayerSkin(playerid,0);
CancelSelectTextDraw(playerid);
}
return 1;
}
ale cos mi nie wychodzi
nast?pnie pr?b?je w
Kod: public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2107.5754, 1002.7842, 45.0756);
ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.1,1,1,1,0,0);
SetPlayerFacingAngle(playerid, 128);
TextDrawShowForPlayer(playerid, textdraw);
TextDrawShowForPlayer(playerid, textdraw2);
TextDrawShowForPlayer(playerid, textdraw3);
TextDrawShowForPlayer(playerid, textdraw4);
TextDrawShowForPlayer(playerid, textdraw5);
TextDrawShowForPlayer(playerid, textdraw6);
TextDrawShowForPlayer(playerid, textdraw7);
TextDrawShowForPlayer(playerid, textdraw8);
TextDrawShowForPlayer(playerid, textdraw9);
SelectTextDraw(playerid, 0xFF4040AA);
return 1;
}
tez nic nie mam poj?cia jak to zrobi? , bardzo mi na tym zalezy wie kto? jak to zrobic ?
Wysłany: 2013-12-22, 23:06
naimad424
Damian
Wiek: 28 Na forum: 4915 dni Posty: 357
Piwa : 3508
Pawn
public OnPlayerRequestClass ( playerid , classid )
{
SetPlayerInterior ( playerid , 0 );
SetPlayerPos ( playerid ,- 755.2900 , 2037.1600 , 77.8984 );
SetPlayerFacingAngle ( playerid , 270.0 );
SetPlayerCameraPos ( playerid ,- 750.2900 , 2037.1600 , 78.8984 );
SetPlayerCameraLookAt ( playerid ,- 755.2900 , 2037.1600 , 78.8984 );
if( Movie [ playerid ] == 0 )
{
TextDrawShowForPlayer ( playerid , TextDrawLogo [ 2 ]);
TextDrawShowForPlayer ( playerid , TextDrawLogo [ 3 ]);
TextDrawShowForPlayer ( playerid , Powitanie [ 1 ]);
TextDrawShowForPlayer ( playerid , Powitanie [ 2 ]);
}
SendClientMessage ( playerid , COLOR_GREY , " " );
SendClientMessage ( playerid , COLOR_ORANGE , "~ DreamServer v.3.2.3b by TRUST(skompilowano 15.09.2011)" );
SendClientMessage ( playerid , COLOR_WHITE , " * Po grze zapraszamy na forum: {0099FF}DreamServer.eu" );
SendClientMessage ( playerid , COLOR_WHITE , " * Jeste? naszym sta?ym graczem? Dodaj do nicku tag: {0099FF}[DS]" );
SendClientMessage ( playerid , COLOR_GREEN , " * Wybierz skin, kt?rego chcesz u?ywac w grze." );
SendClientMessage ( playerid , COLOR_GREEN , " * Aby wybra? zapisany skin nacisnij {CC6600}strza?k? w prawo {33CC00}(ustaw w: /panel)" );
if(! IsRegistered ( playerid ))
{
SendClientMessage ( playerid , COLOR_LIGHTRED , " (info) Aby Twoje statystyki, respekt, itp. by?y zapisywane - zarejestruj si?." );
SendClientMessage ( playerid , COLOR_LIGHTRED , " (info) Aby si? zarejestrowa? wpisz komend? /register [has?o]" );
SendClientMessage ( playerid , COLOR_LIGHTRED , " (info) Po zarejestrowaniu b?dziesz mia? wi?cej mo?liwo?ci." );
}
switch( AnimSkinow )
{
case 0 : ApplyAnimation ( playerid , "DANCING" , "DAN_Down_A" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); // Taichi
case 1 : ApplyAnimation ( playerid , "DANCING" , "DAN_Left_A" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); // Dilujesz
case 2 : ApplyAnimation ( playerid , "DANCING" , "DAN_Right_A" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); // R?ce
case 3 : ApplyAnimation ( playerid , "DANCING" , "DAN_Up_A" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); // f**k
case 4 : ApplyAnimation ( playerid , "DANCING" , "dnce_M_a" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); // Lookout
case 5 : ApplyAnimation ( playerid , "RAPPING" , "Laugh_01" , 4.0 , 1 , 0 , 0 , 0 , 0 ); // Laugh
case 6 : ApplyAnimation ( playerid , "RAPPING" , "RAP_B_Loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ); // Rapujesz
case 7 : ApplyAnimation ( playerid , "DANCING" , "DAN_Right_A" , 4.000000 , 1 , 1 , 1 , 1 , 1 ); //Taniec
}
if( AnimSkinow >= 7 )
{
AnimSkinow = 0 ;
}
else
{
AnimSkinow ++;
}
if( classid >= 0 && classid <= 8 )
Player [ playerid ][ SkinType ] = SKIN_POLICE ;
else if( classid >= 9 && classid <= 11 )
Player [ playerid ][ SkinType ] = SKIN_FIRE ;
else if( classid >= 12 && classid <= 14 )
Player [ playerid ][ SkinType ] = SKIN_MEDI ;
else
Player [ playerid ][ SkinType ] = SKIN_NORMAL ;
new SkinId = Player [ playerid ][ SavedSkin ];
if( SkinId > - 1 && SkinId > 0 && SkinId < 288 && IsValidSkin ( SkinId ) && classid == 1 )
{
GameTextForPlayer ( playerid , "~w~Zaladowano skin gracza." , 3000 , 3 );
SetPlayerSkin ( playerid , SkinId );
}
return 1 ;
}
Wzoruj si? na tym skrypcie.
Wysłany: 2013-12-22, 23:23
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
nie to raczej nie o to chodzi , mi chodzi o to ze jak do?anczam do serwera loguje sie juz po zalogowaniu pokazduja mi sie te skiny , potem wybieram sobie jakis np CJ'a , klikam na niego konczy mi sie wybiera?ka i wszystko znika i jest spawn na jakies tam miejsce
Wysłany: 2013-12-22, 23:58
Maajk_El
PawnoMaster :)
Wiek: 29 Na forum: 4841 dni Posty: 162
Nick w MP: "Maajk_El"
Piwa : 2365
Wysłany: 2013-12-23, 00:04
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
Maajk_El , czy ty uwazasz mnie za .... ? xD
PORAZ KOLEJNY M?WIE ZE CHODZI MI O OSKRYPTOWANIE TYCH TEXDRAW?W
Wysłany: 2014-03-25, 21:28
JotP
Wiek: 26 Na forum: 4821 dni Posty: 217
Piwa : 1215
To ja sie wtr?ce A wi?c, SetSpawnInfo a potem SpawnPlayer
Tagi: wybierałka :: skinów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: