SA-MP Forums Archive
Could This Work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Could This Work? (/showthread.php?tid=260475)



Could This Work? - Robert_Crawford - 09.06.2011

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;
}



Re: Could This Work? - Ash. - 09.06.2011

I don't see why not. Try it


Re: Could This Work? - Robert_Crawford - 09.06.2011

So it's done right?


Re: Could This Work? - Ash. - 09.06.2011

Well, it seems right

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


Re: Could This Work? - Robert_Crawford - 09.06.2011

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;
}



Re: Could This Work? - [L3th4l] - 09.06.2011

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!!


Re: Could This Work? - Robert_Crawford - 09.06.2011

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?


Re: Could This Work? - Vince - 09.06.2011

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


Re: Could This Work? - Mean - 09.06.2011

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)


Re: Could This Work? - Robert_Crawford - 09.06.2011

It does work...