07.03.2010, 10:09
pawn Код:
public OnFilterScriptInit()
{
CreatePickup(1241, 1, 1477.65, -1351.43, 344.05);
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
SetTimerEx("Speed", 1000, 1, "i", playerid);
return 1;
}
pawn Код:
forward Speed(playerid);
public Speed(playerid);
{
if(IsPlayerConnected(playerid) && IsPlayerInRangeOfPoint(playerid, 10, 1477.65, -1351.43, 344.05) && IsPlayerInAnyVehicle(playerid))
{
new Float:X, Float:Y, Float:Z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,X+3.0 ,Y ,Z);
}
}