Could This Work?
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Model = GetVehicleModel(vehicleid);
    if(Model == 427 && !ispassenger)
    {
        GetPlayerArmour(playerid, StoreArmour[playerid]);
    }
    if(PlayerTied[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(PlayerCuffed[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(IsACopCar(playerid) || IsAFBICar(playerid) || IsANGCar(playerid))
{
       do
        {
        new Float:x,Float:y,Float:z,vehid; vehid=GetPlayerVehicleID(playerid);
        GetVehicleVelocity(vehid,x,y,z);
        SetVehicleVelocity(vehid,x+30,y+30,z+30);
        } while(x<200 && y<200 && z<200);
}
    return 1;
}
Reply
#2

I don't see why not. Try it
Reply
#3

So it's done right?
Reply
#4

Well, it seems right

Some people would say it works but until you have tried it you will never know!
Reply
#5

Well idk if this works but it returned no errors

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Model = GetVehicleModel(vehicleid);
    if(Model == 427 && !ispassenger)
    {
        GetPlayerArmour(playerid, StoreArmour[playerid]);
    }
    if(PlayerTied[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(PlayerCuffed[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(IsACopCar(playerid) || IsAFBICar(playerid) || IsANGCar(playerid))
        {
        new
        Float:x, Float:y, Float:z, vehid;
        vehid = GetPlayerVehicleID(playerid);
        GetVehicleVelocity(vehid,x, y, z);
        if (x >= 0.0) x += 30.0;
        else x -= 30.0;
        if (y >= 0.0) y += 30.0;
        else y -= 30.0;
        if (z >= 0.0) z += 30.0;
        else z -= 30.0;
        SetVehicleVelocity(vehid, x, y, z);
    }
 return 1;
}
Reply
#6

Quote:
Originally Posted by Robert_Crawford
Посмотреть сообщение
Well idk if this works but it returned no errors

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Model = GetVehicleModel(vehicleid);
    if(Model == 427 && !ispassenger)
    {
        GetPlayerArmour(playerid, StoreArmour[playerid]);
    }
    if(PlayerTied[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(PlayerCuffed[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(IsACopCar(playerid) || IsAFBICar(playerid) || IsANGCar(playerid))
        {
        new
        Float:x, Float:y, Float:z, vehid;
        vehid = GetPlayerVehicleID(playerid);
        GetVehicleVelocity(vehid,x, y, z);
        if (x >= 0.0) x += 30.0;
        else x -= 30.0;
        if (y >= 0.0) y += 30.0;
        else y -= 30.0;
        if (z >= 0.0) z += 30.0;
        else z -= 30.0;
        SetVehicleVelocity(vehid, x, y, z);
    }
 return 1;
}
Will you stop asking the same thing over and over? They already told you to go in-game and try it out!!!!!!!!!!!!!!!!!!!!!!!! Get it? Try IT OUT!! IN GAME!!
Reply
#7

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
Will you stop asking the same thing over and over? They already told you to go in-game and try it out!!!!!!!!!!!!!!!!!!!!!!!! Get it? Try IT OUT!! IN GAME!!
Troll much?
Reply
#8

No, he's not trolling! Just do it.
Reply
#9

Quote:
Originally Posted by Robert_Crawford
Посмотреть сообщение
Troll much?
You are trolling more than him... Stop wasting our time and GFTI.

(GFTI - Go Freaking Try It)
Reply
#10

It does work...
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)