Falling when Entering Pickup/Checkpoint (Urgent)
#1

hello guys, i dont know why this thing happens. everytime i enter a checkpoint or pickup i uses them for my entrance, everytime i enter a checkpoint or pickup when im id 1,2,3,4 and so on im falling, but when im using ID: 0 im not, i dont know, its my first time having this problem i hope you guys help me.
Reply
#2

Please post some code?
Reply
#3

this is the global variable and when player enters the pickup note: this code is only pickup not checkpoint.

pawn Код:
//Global Variable
//ATM pickup
new atm1;
new atm2;
new atm3;
new atm4;
//---------//
new casino = 99;
new barber;
new barberex;
new tatoo;
new tatooex;
new casinoex = 98;
new wspz;
new wspzex;
new wspz1;
new wspz1ex;
new bs;
new bsex;
new bs1;
new bs1ex;
new bs2;
new bs2ex;
new bc;
new bcex;
new cb;
new cbex;
new cb1;
new cb1ex;
new cb2;
new cb2ex;
new bb;
new bbex;
new gds;
new gdsex;
new zip;
new zipex;
new vt;
new vtex;
new zrcs;
new zrcsex;
new mistys;
new mistysex;
new gym;
new gymex;
new drivingschool;
new drivingschoolex;
new ammu;
new ammuex;
new penter;
new pexit;
new pshop;
new jizzy;
new jizzyex;
new cthallex;
new crazykart;
new crazykartex;
new cinemaex = 97;

//OnPlayerPickUpPickup
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == FBIInsidePickup || pickupid == FBIRoofPickup || pickupid == FBIGaragePickup)
    {
        SendClientMessage(playerid,COLOR_DODGERBLUE,"To use the FBI Elevator use /liftup and /liftdown");
        return 1;
    }
    if(pickupid == atm1 || pickupid == atm2 || pickupid == atm3 || pickupid == atm4)
    {
        ShowPlayerDialog(playerid, DIALOG_BANK_LIST, DIALOG_STYLE_LIST,"ATM Machine","Withdraw Money\nDeposit Money\nCheck Balance\nTransfer Funds","Accept","Close");
        return 1;
    }
    if(pickupid == tatoo)
    {
        SetPlayerInterior(playerid, 16);
        SetPlayerPos(playerid,-201.232803, -22.764419, 1002.273437);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == tatooex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, -1567.018920,1113.483642,7.187500);
        }
    }
    if(pickupid == casinoex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, -1548.816284,1054.583984,7.187500);
    }
    if(pickupid == casino)
    {
        SetPlayerInterior(playerid, 10);
        SetPlayerPos(playerid,2014.750854, 1017.316406, 996.519470);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == barber)
    {
        SetPlayerInterior(playerid, 3);
        SetPlayerVirtualWorld(playerid, 2);
        SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == barberex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1566.500488,1127.886596,7.187500);
    }
    if(pickupid == wspz)
    {
        SetPlayerInterior(playerid, 5);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 371.322540,-130.185256,1001.492187);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDPIZA");
    }
    if(pickupid == wspzex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid,-1724.202026,1360.259155,7.187500);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == wspz1)
    {
        SetPlayerInterior(playerid, 5);
        SetPlayerVirtualWorld(playerid, 2);
        SetPlayerPos(playerid, 371.322540,-130.185256,1001.492187);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDPIZA");
    }
    if(pickupid == wspz1ex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1805.955566,943.366821,24.890625);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bs)
    {
        SetPlayerInterior(playerid,10);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid,365.353576,-73.941848,1001.507812);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDBURG");
    }
    if(pickupid == bsex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2358.691162,1005.521423,50.695312);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bs1)
    {
        SetPlayerInterior(playerid,10);
        SetPlayerVirtualWorld(playerid, 2);
        SetPlayerPos(playerid, 365.353576,-73.941848,1001.507812);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDBURG");
    }
    if(pickupid == bs1ex)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1910.093261,830.862243,35.171875);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bs2)
    {
        SetPlayerInterior(playerid,10);
        SetPlayerVirtualWorld(playerid, 3);
        SetPlayerPos(playerid, 365.353576,-73.941848,1001.507812);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDBURG");
    }
    if(pickupid == bs2ex)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2333.946289,-166.696685,35.554687);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bc)
    {
        SetPlayerInterior(playerid, 15);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bcex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2376.078857,909.827209,45.445312);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == cb)
    {
        SetPlayerInterior(playerid, 9);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 366.034881,-9.723926,1001.851562);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDCHICK");
    }
    if(pickupid == cbex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1816.083129,616.693908,35.171875);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == cb1)
    {
        SetPlayerInterior(playerid, 9);
        SetPlayerVirtualWorld(playerid, 2);
        SetPlayerPos(playerid, 366.034881,-9.723926,1001.851562);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDCHICK");
    }
    if(pickupid == cb1ex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2671.512939,261.794616,4.632812);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == cb2)
    {
        SetPlayerInterior(playerid, 9);
        SetPlayerVirtualWorld(playerid, 3);
        SetPlayerPos(playerid, 366.034881,-9.723926,1001.851562);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "FDCHICK");
    }
    if(pickupid == cb2ex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1547.742797,1213.344848,7.381250);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bb)
    {
        SetPlayerInterior(playerid, 3);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == bbex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2568.885742,243.841949,10.245244);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == gds)
    {
        SetPlayerInterior(playerid, 17);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 493.390991,-22.722799,1000.679687);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == gdsex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2554.313232,192.769332,6.138108);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == zip)
    {
        SetPlayerInterior(playerid, 18);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 161.391006,-93.159156,1001.804687);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == zipex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1884.214599,864.275878,35.171875);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == vt)
    {
        SetPlayerInterior(playerid, 5);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 223.455154,-8.655437,1002.210937);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == vtex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -1696.291748,950.331848,24.890625);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == zrcs)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, -2237.194580,136.381866,1035.414062);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == zrcsex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2245.604003,128.278411,35.320312);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == mistys)
    {
        SetPlayerInterior(playerid, 11);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == mistysex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2244.593994,-88.143310,35.320312);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == gym)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, 772.816467,-47.107429,1000.592712);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == gymex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2267.978271,-155.794982,35.320312);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == drivingschool)
    {
        SetPlayerInterior(playerid, 3);
        SetPlayerVirtualWorld(playerid, 1);
        SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == drivingschoolex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2026.583007,-98.837745,35.164062);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == ammu)
    {
        SetPlayerInterior(playerid, 1);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, 286.339660,-38.591598,1001.515625);
        SetCameraBehindPlayer(playerid);
        SetPlayerShopName(playerid, "AMMUN1");
    }
    if(pickupid == ammuex)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid, -2626.847412,211.390502,4.592437);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == penter)
    {
        SetPlayerPos(playerid, -2701.6, 1328.1, -8.5);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 24);
    }
    if(pickupid == pexit)
    {
        SetPlayerPos(playerid, -2653.4, 1341.6, 7.1);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 0);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == pshop)
    {
        ShowPlayerDialog(playerid, DIALOG_DRINK, DIALOG_STYLE_LIST, "Menu", "{FF5000}Sprunk\n{3000FF}Beer\n{CC8080}Wine", "Select", "Cancel");
    }
    if(pickupid == jizzy)
    {
        SetPlayerPos(playerid, -2640.762939,1406.682006,906.460937);
        SetPlayerInterior(playerid, 3);
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 1);
    }
    if(pickupid == jizzyex)
    {
        SetPlayerPos(playerid, -2623.578125,1409.178100,7.101562);
        SetPlayerInterior(playerid, 0);
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 0);
    }
    if(pickupid == cthallex)
    {
        SetPlayerPos(playerid, -2760.666503,375.002685,4.917655);
        SetPlayerInterior(playerid, 0);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == crazykart)
    {
        SetPlayerPos(playerid, -2029.4733,-124.0944,35.2107);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == crazykartex)
    {
        SetPlayerPos(playerid, -2029.7303,-117.3965,1035.1719);
        SetPlayerInterior(playerid, 3);
        SetPlayerVirtualWorld(playerid, 1);
        SetCameraBehindPlayer(playerid);
    }
    if(pickupid == cinemaex)
    {
        SetPlayerPos(playerid,-2169.6025,252.0992,35.3325);
        SetCameraBehindPlayer(playerid);
        StopAudioStreamForPlayer(playerid); //Stop the audio stream
        SendClientMessage(playerid,COLOR_YELLOW,"Thank you for visiting San Fierro Cinema, Hope you come back!");
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}
or maybe because i have
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
Reply
#4

Waiting for half an hour and still no replies. please help, anyone could have any solution or idea?
Reply
#5

PHP код:
SetTimerEx("LoadInt",2500,0,"i",playerid);
TogglePlayerControllable(playeridfalse);
//Then at the bottem on your script:
forward LoadInt(playerid);
public 
LoadInt(playerid)
{
TogglePlayerControllable(playeridtrue);
return 
1;

try
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)