WTF is going on here????? The shit doesn't work again...
#1

Solved
Reply
#2

Hello
Reply
#3

Your trying to Teleport with the car?
Reply
#4

That's bad. You're not even passing the vehicle model id, you are using the vehicleid.
You could change :
pawn Код:
new vehicle = GetPlayerVehicleID(playerid);
To :
pawn Код:
new vehicle = GetVehicleModel( GetPlayerVehicleID(playerid));
OR

Edit this to fit your needs:
pawn Код:
stock IsBig(modelid)
{
    switch(modelid)
    {
        case 403,406,408,414,416,417,423,425:return true;
        case 428,431,432,433,437,443,453,455,456,460:return true;
        case 476,486,487,488,497,498,499,508,511,512,513,514,515:return true;
        case 519,520,524,532,548,553,563,573,577,588,598,592,593,608,609:return true;
    }
    return false;
}

if( IsBig( GetVehicleModel( GetPlayerVehicleID(playerid)) ) )
{
    // allow teleport
}

Reply
#5

Thanks I already fixed it by myself but thanks for helping.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)