[Pomoc] Avion

Započeo Milos25, Decembar 12, 2012, 20:16:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NBE
Detaljan opis problema: Kako da namestim u toku tut da mi igrac bude u avionu a ne da mi stoji gore u opstinu ali samo kada prikazuje na tut pravila  ( Ali da sedi )
Mapa aviona: http://balkan-samp.com/forum/index.php?topic=60681.msg436146#msg436146
Dio skripte: Ispod
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

else if(TutTime[i] == 94)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
PlayerInfo[i][pVirWorld] = 0;
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ KRAJ TUTORIALA,SADA SLEDE KRATKA StatePlay PRAVILA~");
        SendClientMessage(i, 0x00FFFFFF, " ");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Obavezno procitajte ova pravila.");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Dobro ih upamtite.");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Posle pravila bice vam postavljana pitanja,ako tacno odgovorite uci cete na server!");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Loading PRAVILA ....");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 98)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        JBC_SetPlayerPos(i, 330.6825,163.6688,1014.1875);
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
PlayerInfo[i][pVirWorld] = 0;
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ PRAVILA ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}StatePlay - predstavlja simulaciju realnog zivota");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}OOC Kada pricate sa nekim nevezano za igricu ,pricajte na /oc.");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}IC chat je chat za iskazivanje radnji gde pricate kao lik u igrici.");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Komandom /me iskazujete radnje gradjana (/me vadi pistolj)!");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Revenge Kill - je ubistvo iz osvete i to je zabranjeno na SP serverima.");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 102)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        JBC_SetPlayerPos(i, 330.6825,163.6688,1014.1875);
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Kada ste obican gradjanin,trudite se da se pristojno ponasate i pomazete drugima");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}PRIMER: hodate gradom ,pitate ljude kako su ,sta rade ,kao u realnom zivotu");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 106)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        JBC_SetPlayerPos(i, 330.6825,163.6688,1014.1875);
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}U bandama igraci trebaju da idu u grupi i da prate lidera ,da brane svoju teritoriju od drugih");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Svaka banda mora da ima svoj nacin komunikacije da se pozdravljate medjusobno preko animacija");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 110)
    {
        ClearChatbox(i, 10);
        SetPlayerInterior(i, 3);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Mafije moraju da budu najjace u gradu ,moraju da ih postuju i cene");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Al zato mafija ne sme da puca na civile bez razloga vec mafijaski da se ponasa");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 114)
    {
        ClearChatbox(i, 10);
        SetPlayerInterior(i, 3);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Milicija i Interventna moraju da uvode red i zakon u gradu,i da kontrolisu saobracaj ,da imaju patrole");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Policajac mora da patrolira gradom sa kolegom u kolima i da nadgleda gradjane");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 118)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        SetPlayerVirtualWorld(i, 0);
        JBC_TogglePlayerControllable(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Taxi sluzbe moraju da poznaju grad kao svoj dlan i da pomazu novim igracima");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Turisti najvise zavise od taksista zato sto im uvek treba prevoz");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 122)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        SetPlayerVirtualWorld(i, 0);
        JBC_TogglePlayerControllable(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}U gradu nema psovanja vredjanja ,vec morate da se ponasate ozbiljno");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Trudite se da iskoristite mastu i da bude zabavno i vama i drugima");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 126)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        SetPlayerVirtualWorld(i, 0);
        JBC_TogglePlayerControllable(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Pravi StatePlay igraci bleje ispred kuce idu u prodavnicu po hleb,imitiraju realan zivot");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Hodaju po gradu pozdravljaju se sa svima i uce druge igrace da igraju");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 130)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Profesionalni StatePlay");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Profesionalni SP je onaj nacin igranja gde vi smisljate nove zabavne stvari");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 134)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Ukoliko ste bolnicar ,trudite se da izlecite ljude od svakih povreda i bolesti");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}postoje animacije sa kojima lecite ljude /anims");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 138)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Budite posteni ,nemojte da varate nikog");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Pare nikad nisu bile problem,para nema");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 142)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Ako drugima ucinite nesto,kad tad ce vam oni vratiti");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Dobra dela se dobrim uvek vracaju");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 146)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Sada kada se stvorite na aerodromu kao turista");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}ako naidjete na druge turiste pozdravite se sa njima");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 150)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}~ UPUTSTVO KAKO IGRATI ~");
        SendClientMessage(i, 0x0080FFFF, "");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Mozete cak i u grupi sa ostalim turistima da razgledate grad");
        SendClientMessage(i, 0x00FFFFFF, "{FFFFFF}Srecno ;)");
        ClearChatbox(i, 2);
    }
    else if(TutTime[i] == 154)
    {
        ClearChatbox(i, 10);
                    SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
        SetCameraBehindPlayer(i);
        JBC_TogglePlayerControllable(i, 0);
        SetPlayerVirtualWorld(i, 0);
        SendClientMessage(i, 0x0080FFFF, "Niko Bellic: Dobrodosao u Beograd");
        SendClientMessage(i, 0x0080FFFF, "Niko Bellic: Prebacio sam ti 20.000 na tvoj ilegalni racun");
        SendClientMessage(i, 0x0080FFFF, "Niko Bellic: Idi do bankomata i digni pare");
        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}Avion Slece na Aerodrom....");
        ClearChatbox(i, 2);
    }
Trazim Mapera

daj mi setplayerspawn da ti sredim to

public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
            SetPVarInt(playerid, "Izbegavanje", 0);
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            SetPlayerInterior(playerid, 3);
            SetPlayerInterior(playerid, 3);
            SetPlayerCameraPos( playerid, 1143.8341, -1039.4705, 81.0823 );
            SetPlayerCameraLookAt( playerid, 1150.5505, -1046.6729, 79.3458 );
            JBC_SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
            SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
            //SetPlayerInterior(playerid, 0);
            //SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 280);
JBC_TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 50);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, " Dobrodosli na Gold Gaming. Bicete prosledjeni u imigraciono odeljenje.");
SendClientMessage(playerid, COLOR_WHITE, "1. Da li ste musko ili zensko? (napisite sta ste)");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
TextDrawHideForPlayer(playerid, bssrpp1);
        TextDrawHideForPlayer(playerid, bssrpp2);
        TextDrawHideForPlayer(playerid, Textdraw1);
        TextDrawHideForPlayer(playerid, Textdraw0);
        //TextDrawHideForPlayer(playerid, Textdrawic);
        //TextDrawHideForPlayer(playerid, scrtd);
        //TextDrawHideForPlayer(playerid, scrtd1);
        TextDrawHideForPlayer(playerid, Zones[playerid]);
        TextDrawHideForPlayer(playerid, Zones1[playerid]);
        TextDrawHideForPlayer(playerid, Banka[playerid]);
        TextDrawHideForPlayer(playerid, Zlato[playerid]);
        TextDrawHideForPlayer(playerid, Time);
        TextDrawHideForPlayer(playerid, Datum);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, Textdraw2);
        //TextDrawHideForPlayer(playerid, Zastava0);
        TextDrawHideForPlayer(playerid, Zastava1);
        TextDrawHideForPlayer(playerid, Zastava2);
        TextDrawHideForPlayer(playerid, Zastava3);
        TextDrawHideForPlayer(playerid, Zastava4);
        TextDrawHideForPlayer(playerid, Zastava5);
        TextDrawHideForPlayer(playerid, Zastava6[playerid]);
       /* Poruke();*/
     return 1;
}
Trazim Mapera

public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
            SetPVarInt(playerid, "Izbegavanje", 0);
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            SetPlayerInterior(playerid, 3);
            SetPlayerInterior(playerid, 3);
            SetPlayerCameraPos( playerid, 1143.8341, -1039.4705, 81.0823 );
            SetPlayerCameraLookAt( playerid, 1150.5505, -1046.6729, 79.3458 );
            JBC_SetPlayerPos(playerid, 76.6308,-89.5403,1001.2363);
LoopingAnim(playerid,"MISC","seat_talk_02",2.0,1,0,0,0,0);
            SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
            //SetPlayerInterior(playerid, 0);
            //SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 280);
JBC_TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 50);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, " Dobrodosli na Gold Gaming. Bicete prosledjeni u imigraciono odeljenje.");
SendClientMessage(playerid, COLOR_WHITE, "1. Da li ste musko ili zensko? (napisite sta ste)");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
TextDrawHideForPlayer(playerid, bssrpp1);
        TextDrawHideForPlayer(playerid, bssrpp2);
        TextDrawHideForPlayer(playerid, Textdraw1);
        TextDrawHideForPlayer(playerid, Textdraw0);
        //TextDrawHideForPlayer(playerid, Textdrawic);
        //TextDrawHideForPlayer(playerid, scrtd);
        //TextDrawHideForPlayer(playerid, scrtd1);
        TextDrawHideForPlayer(playerid, Zones[playerid]);
        TextDrawHideForPlayer(playerid, Zones1[playerid]);
        TextDrawHideForPlayer(playerid, Banka[playerid]);
        TextDrawHideForPlayer(playerid, Zlato[playerid]);
        TextDrawHideForPlayer(playerid, Time);
        TextDrawHideForPlayer(playerid, Datum);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, Textdraw2);
        //TextDrawHideForPlayer(playerid, Zastava0);
        TextDrawHideForPlayer(playerid, Zastava1);
        TextDrawHideForPlayer(playerid, Zastava2);
        TextDrawHideForPlayer(playerid, Zastava3);
        TextDrawHideForPlayer(playerid, Zastava4);
        TextDrawHideForPlayer(playerid, Zastava5);
        TextDrawHideForPlayer(playerid, Zastava6[playerid]);
       /* Poruke();*/
     return 1;
}
ovako