Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-07-14, 16:19


rudek6

Mix_By_Van_Matys :D






Wiek: 45
Na forum: 5191 dni
Posty: 46
Nick w MP: Van_Matys

Piwa: 16

Respekt: 50

Witam


Mam Problem z Wybiera?k? w mapce PP

Chciea?bym j? przerobic na tak? :





Oto Ta z mapki PP
Kod:

public OnPlayerRequestClass(playerid, classid)
{
if(Player[playerid][State] != P_STATE_SELECTING)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, -2049.1326, 163.9735, 28.8359);
SetPlayerFacingAngle(playerid, 349.3825);
Player[playerid][IntroEnded] = false;

SetTimerEx("Intro", 70, false, "df", playerid, 0);
SetTimerEx("Animation", 70, false, "d", playerid);
PSelectingClass[playerid][CameraPosition] = -2037.8420;
PSelectingClass[playerid][CameraHeight] = 31.5359;
PSelectingClass[playerid][CameraLookAt] = -2048.1326;
PSelectingClass[playerid][CameraLookAtSpeed] = 1.0;
PSelectingClass[playerid][Rotate] = 349.3825;
PSelectingClass[playerid][CameraSpeed] = 0.0;
PSelectingClass[playerid][CameraHeightSpeed] = 0.0;
PSelectingClass[playerid][CameraUping] = false;
PSelectingClass[playerid][CameraPos2] = 170.3098;
PSelectingClass[playerid][CameraPos2Speed] = 1.0;

UpdateIntroTextDraw(playerid, 0);
TextDrawLetterSize(tdIntroCurtain[playerid], 3.019999, 27.800003);

for(new Order = 0; Order < 2; Order++)
TextDrawShowForPlayer(playerid, tdIntroBox[Order]);
for(new Order = 0; Order < 3; Order++)
TextDrawShowForPlayer(playerid, tdIntroTitle[Order]);
TextDrawShowForPlayer(playerid, tdIntroDescription[playerid]);
TextDrawShowForPlayer(playerid, tdIntroCurtain[playerid]);
}

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, "~r~S~w~kin ~r~g~w~racza ~r~z~w~aladowany!", 3000, 3);
SetPlayerSkin(playerid, SkinId);
}

new RandomAct = random(2);
new ActId;
if(RandomAct == 0)
ActId = SPECIAL_ACTION_DANCE3;
else if(RandomAct == 1)
ActId = SPECIAL_ACTION_DANCE2;
SetPlayerSpecialAction(playerid, ActId);// - ta?czenie na wybiera?ce

Player[playerid][State] = P_STATE_SELECTING;
Player[playerid][Interior] = GetPlayerInterior(playerid);
HideHealthTextDrawForPlayer(playerid);

return 1;
}



Teraz kordy
Kod:

SetPlayerPos(playerid, -1278.4835, 976.6465, 139.2304);
SetPlayerFacingAngle(playerid,94.0000);
SetPlayerCameraPos(playerid, -1273.3687, 977.6422, 140.9275);
SetPlayerCameraLookAt(playerid, -1274.3054, 977.2903, 140.5674);




Za Pomoc Zimny Lech :D :arrow: :piwo:

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:24


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
Masz. Przer?b sobie z mojego kodu. Pozycje kamery i skina ustal oczywi?cie sam i KONIECZNIE MUSISZ USUN?? NIE POTRZEBNE RZECZY !

Pawn
    forward Intro(PlayerIdDistance);
        public Intro(PlayerIdDistance)
    {
        for(new Order 0Order 5Order++)
        SendClientMessage(PlayerIdCOLOR_GREEN" ");
        
        if((Distance%2) == && Distance && (Distance/2) < strlen(IntroText))
        UpdateIntroTextDraw(PlayerIdDistance/2);
        
        if(((Distance/2)+10) > strlen(IntroText))
        {
            Distance -= 60;
            Distance *= 2;
            
            if(Distance == 60)
            TextDrawHideForPlayer(PlayerIdtdIntroTitle[2]);
            else if(Distance == 66)
            {
                TextDrawHideForPlayer(PlayerIdtdIntroTitle[0]);
                TextDrawHideForPlayer(PlayerIdtdIntroTitle[1]);
                TextDrawShowForPlayer(PlayerIdtdSkinID);
                PlaySoundForPlayer(PlayerId1097);
            }
            else if(Distance == 36)
            TextDrawHideForPlayer(PlayerIdtdIntroDescription[PlayerId]);
            
            TextDrawHideForPlayer(PlayerIdtdIntroCurtain[PlayerId]);
            TextDrawLetterSize(tdIntroCurtain[PlayerId], 3.019999, (27.800003*(80-Distance)/80.0)-2.0);
            TextDrawShowForPlayer(PlayerIdtdIntroCurtain[PlayerId]);
            Distance /= 2;
            Distance += 60;
        }
        
        Distance++;
        
        if(Distance 120)
        SetTimerEx("Intro"70false"df"PlayerIdDistance);
        else
        {
            Player[PlayerId][IntroEnded] = true;
        }
        return 1;
    }


Pawn
public OnPlayerRequestSpawn(playerid)
{
    if(!Player[playerid][Logged] || !Player[playerid][IntroEnded])
    return 0;
    
    SetPlayerColor(playerid0xFFFFFFFF);
    
    KillTimer(PSelectingClass[playerid][AnimationTimer]);
    Player[playerid][State] = P_STATE_PLAYING;
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_NONE);
    SetPlayerInterior(playerid0);
    
    for(new Order 0Order 2Order++)
    TextDrawHideForPlayer(playeridtdIntroBox[Order]);
    for(new Order 0Order 3Order++)
    TextDrawHideForPlayer(playeridtdIntroTitle[Order]);
    TextDrawHideForPlayer(playeridtdIntroDescription[playerid]);
    TextDrawHideForPlayer(playeridtdIntroCurtain[playerid]);
    
    for(new x=0;x<10;x++)
    TextDrawShowForPlayer(playeridtdStatus[x]);
    
    TextDrawShowForPlayer(playeridPunktyEXP[playerid]);
    TextDrawShowForPlayer(playeridPoziomGracza[playerid]);
    TextDrawShowForPlayer(playeridNazwaPojazdu[playerid]);
    TextDrawShowForPlayer(playeridMiastoGracza[playerid]);
    TextDrawShowForPlayer(playeridStatystyka[playerid]);
    TextDrawShowForPlayer(playeridNazwaGangu[playerid]);
    TextDrawShowForPlayer(playeridCzasGry[playerid]);
    TextDrawShowForPlayer(playeridKillStreak[playerid]);
    
    TextDrawShowForPlayer(playeridTextdrawLogo);
    TextDrawShowForPlayer(playeridTextdrawLogo1);
    TextDrawShowForPlayer(playeridtdInfo);
    
    if(IsAdmin(playerid))
    SendClientMessage(playeridCOLOR_ERROR" [PES info] Witaj adminie. Lista komend: /acmd lub /hcmd");
    
    if(Player[playerid][FirstSpawn])
    ShowTutorialDialog(playerid);
    else
    if(Player[playerid][HouseOwn] == -1)
    ShowCityDialog(playerid);
    
    Player[playerid][FirstSpawn] = false;
    
    Attach3DTextLabelToPlayer(lExp[playerid], playerid0.00.00.6);
    if(Player[playerid][Vip])
    Attach3DTextLabelToPlayer(lVip[playerid], playerid0.00.01.2);
    
    if(strlen(Player[playerid][Description]) > 0)
    {
        UpdatePlayerDescription(playerid);
        Attach3DTextLabelToPlayer(lDescription[playerid], playerid0.00.01.0);
    }
    
    ShowHouseIconsForPlayer(playerid);
    ShowHealthTextDrawForPlayer(playerid);
    
    return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:27


rudek6

Mix_By_Van_Matys :D






Wiek: 45
Na forum: 5191 dni
Posty: 46
Nick w MP: Van_Matys

Piwa: 16

Respekt: 50

?eby nie by?o ja nie jestem jakim? specem od pawn :D



Ale za wiele nie umiem :D

Wiec nie ?apie si? z tym za bardzo

[ Dodano: 2012-07-14, 16:30 ]
I jak by ju? pow jakie niepotrzebne rzeczy usun?? ?

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:32


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
Poszukaj w mapach do pobrania. Gdzie? tam masz map? serwera Pro Evolucja, jest edit PP. Mo?esz z niej skopiowa? kod wybiera?ki. :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:33


rudek6

Mix_By_Van_Matys :D






Wiek: 45
Na forum: 5191 dni
Posty: 46
Nick w MP: Van_Matys

Piwa: 16

Respekt: 50

ok zobaczymy jak zadzia?a to :piwo: :D

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:38


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
Bym tobie zedytowa? ten kod ale nie pami?tam zbytni jak to dzia?a?o w mapie PP, a pisanie w przegl?darce to nie pisanie :)

W razie problem?w pisz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:40


rudek6

Mix_By_Van_Matys :D






Wiek: 45
Na forum: 5191 dni
Posty: 46
Nick w MP: Van_Matys

Piwa: 16

Respekt: 50

a masz linka do tej mapki Pro Evolucja ? bo szukam i na razie nie wyszuka?em :(

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:41


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 16:44


rudek6

Mix_By_Van_Matys :D






Wiek: 45
Na forum: 5191 dni
Posty: 46
Nick w MP: Van_Matys

Piwa: 16

Respekt: 50

THX przyda si? wezm? z niej kilka rzeczy przydadz? si? :)


//Edit

E:\rafal\server\samp03e_svr_win32\gamemodes\BP.pwn(3625) : error 017: undefined symbol "tdSkinID"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

WTF ? :D

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-14, 19:40


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

?ci?gnij sobie Skrypt dynamiczna wybiera?ka by Terminator3
http://paw*no.pl/index.php?topic=12816.0
PS. Usu? z linku *

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-15, 01:30


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
no ok. ale co mu to da jak musi star? wybiera?ke usun?? :/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-15, 08:44


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

Boo?e usun?? wybiera?k? jest tak ?atwo jak zrobienie kupy w kiblu :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-15, 13:18


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
Jak Ty od 2 lat siedzisz w mapie PP, znasz ca?y kod na pami?? to oczywi?cie ?e ?atwo, nie ka?dy jest taki zdolny :-> :) xD

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-15, 14:15


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Ten skrypt co poda?em generuje kod od razu do wklejenia :) Wi?c star? usunie a now? wklei :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-15, 14:21


Bartek23071993

WiceWersa






Wiek: 29
Na forum: 5223 dni
Posty: 250
Nick w MP: WiceWersa

Piwa: 2429

Respekt: 70

Ostrzeżeń: 20%
_FasteR_, zapytam nie w temacie, czy generuje te? ruchom? kamer? czy tylko jej pozycje ?? Wiesz o co chodzi ?

Postaw piwo autorowi tego posta
 

 
Tagi: wybierałka
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku