17.11.2012, 10:46
[ame]http://www.youtube.com/watch?v=ppmAvBHe3yY[/ame]
Can someone make filterscript?
Can someone make filterscript?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
SetPlayerVelocity(playerid,150.0,0.0,0.0); //Change 150 to your needs!
// This is setting vehicle's Velocity to 150 at X direction!
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:vx,Float:vy,Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.8, vy *1.8, vz * 1.8); //adjust by yourself
}
}
return 1;
}